class WildcardDefinitionPatternMatcher implements
        DefinitionPatternMatcher {

    public Definition createDefinition(String definitionName) {
        List<String> vars = wildcardHelper.match(definitionName, pattern);
        Definition d = null;

        if (vars != null) {
            d = PatternUtil.replacePlaceholders(definition, definitionName,
                    vars.toArray());
        }

        return d;
    }

    public  WildcardDefinitionPatternMatcher(String pattern,
            Definition definition, WildcardHelper wildcardHelper);

}