if (expected.endsWith("*")) {
return path.startsWith(expected.substring(0, expected.length()-1));
} else {
return path.equals(expected);
}
} else if (attributes.containsAttribute(attrName)) {
// lookup attribute value
for (String actual : attributes.getAttributeValues(attrName)) {
// get prefix length according to "*"
int prefixLength = expected.indexOf('*');