Matcher (final String name) { if (myMatcher == null) { // need to quote dots, dollars, etc. myMatcher = PatternUtil.fromMask(getPattern()).matcher(name); } else { myMatcher.reset(name); } return myMatcher; }