private void parseGlobalAttributes()

in src/main/java/org/apache/sling/xss/impl/xml/MapBuilder.java [126:137]


    private void parseGlobalAttributes(List<Attribute> root) throws InvalidConfigException {
        for (Attribute ele : root) {
            String name = ele.getName();
            Attribute toAdd = policy.commonAttributes.get(name);

            if (toAdd != null)
                policy.globalAttributes.put(name, toAdd);
            else
                throw new InvalidConfigException("Global attribute '" + name
                        + "' was not defined in <common-attributes>");
        }
    }