return match(itemName, matcher);
}
private boolean match(String itemName, Matcher matcher) {
MatchResultSubstitution subs = new MatchResultSubstitution(matcher);
String type = trimToNull(subs.substitute(typeName));
String name;
if (type == null) {
return false;
}
if (moduleName == null) {
int startIndex = subs.getMatch().end() + 1;
if (itemName.length() > startIndex) {
name = itemName.substring(startIndex);
} else {
return false;
}
} else {
name = subs.substitute(moduleName);
}
name = getName(name, itemName);
if (items.containsKey(itemName)) {