return builder.addRequirement(namespace, atts, dirs);
}
public static void readAttributesAndDirectives(XMLStreamReader reader, Map<String, Object> atts, Map<String, String> dirs) throws XMLStreamException {
while (reader.hasNext() && reader.nextTag() == START_ELEMENT) {
Element element = Element.forName(reader.getLocalName());
switch (element) {
case ATTRIBUTE:
readAttributeElement(reader, atts);
break;
case DIRECTIVE: