Why yes, there is such a class. In fact, I've written it myself last month
It's not that hard to write it yourself, using java.util.regex.Pattern. I've used a Properties object in the background, and the getProperty method is the only thing that requires some work.
matcher.find() will find the next occurrance of a template (see the
pattern comment), or return false if there are no more occurrances.