in src/main/java/org/apache/sling/xss/impl/xml/MapBuilder.java [150:162]
private void parseDynamicAttributes(List<Attribute> root) throws InvalidConfigException {
for (Attribute ele : root) {
String name = ele.getName();
Attribute toAdd = policy.getCommonAttributes().get(name);
if (toAdd != null) {
String attrName = name.substring(0, name.length() - 1);
policy.getDynamicAttributes().put(attrName, toAdd);
} else
throw new InvalidConfigException(
"Dynamic attribute '" + name + "' was not defined in <common-attributes>");
}
}