Buggy code:
public class JacORBSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { static final JacORBSubsystemParser INSTANCE = new JacORBSubsystemParser ( ) ; private JacORBSubsystemParser ( ) { } @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > nodes ) throws XMLStreamException { } private void readElement_1_0 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void readElement_1_1 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseORBConfig_1_0 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseORBConfig_1_1 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseORBConnectionConfig ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseORBInitializersConfig_1_0 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseORBInitializersConfig_1_1 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parsePOAConfig ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { EnumSet < JacORBSubsystemParser . Attribute > expectedAttributes = EnumSet . of ( JacORBSubsystemParser . Attribute . POA_MONITORING , JacORBSubsystemParser . Attribute . POA_QUEUE_WAIT , JacORBSubsystemParser . Attribute . POA_QUEUE_MIN , JacORBSubsystemParser . Attribute . POA_QUEUE_MAX ) ; this . parseAttributes ( reader , node , expectedAttributes , null ) ; EnumSet < JacORBSubsystemParser . Element > encountered = EnumSet . noneOf ( JacORBSubsystemParser . Element . class ) ; while ( ( reader . hasNext ( ) ) && ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) ) { final JacORBSubsystemParser . Element element = JacORBSubsystemParser . Element . forName ( reader . getLocalName ( ) ) ; if ( ! ( encountered . add ( element ) ) ) { throw duplicateNamedElement ( reader , element . getLocalName ( ) ) ; } switch ( element ) { case POA_REQUEST_PROC : { EnumSet < JacORBSubsystemParser . Attribute > attributes = EnumSet . of ( JacORBSubsystemParser . Attribute . POA_REQUEST_PROC_POOL_SIZE , JacORBSubsystemParser . Attribute . POA_REQUEST_PROC_MAX_THREADS ) ; <START_BUG> this . parseAttributes ( reader , node , attributes , EnumSet . copyOf ( attributes ) ) ; <END_BUG> requireNoContent ( reader ) ; break ; } default : { throw unexpectedElement ( reader ) ; } } } } private void parseNamingConfig ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseInteropConfig ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseSecurityConfig_1_0 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseSecurityConfig_1_1 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parsePropertiesConfig ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseGenericProperty_1_0 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseGenericProperty_1_1 ( XMLExtendedStreamReader reader , ModelNode node ) throws XMLStreamException { } private void parseAttributes ( XMLExtendedStreamReader reader , ModelNode node , EnumSet < JacORBSubsystemParser . Attribute > expectedAttributes , EnumSet < JacORBSubsystemParser . Attribute > requiredAttributes ) throws XMLStreamException { } @ Override public void writeContent ( XMLExtendedStreamWriter writer , SubsystemMarshallingContext context ) throws XMLStreamException { } private void writeORBConfig ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writePOAConfig ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writeNamingConfig ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writeInteropConfig ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writeSecurityConfig ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writeGenericProperties ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writeAttributes ( XMLExtendedStreamWriter writer , ModelNode node , List < SimpleAttributeDefinition > attributes ) throws XMLStreamException { } private boolean isWritable ( ModelNode node , List < SimpleAttributeDefinition > attributeDefinitions ) { } enum Namespace { UNKNOWN ( null ) , JacORB_1_0 ( "urn:jboss:domain:jacorb:1.0" ) , JacORB_1_1 ( "urn:jboss:domain:jacorb:1.1" ) ; static final JacORBSubsystemParser . Namespace CURRENT = JacORBSubsystemParser . Namespace . JacORB_1_1 ; private final String namespaceURI ; private Namespace ( final String namespaceURI ) { } String getUriString ( ) { } private static final Map < String , JacORBSubsystemParser . Namespace > MAP ; static JacORBSubsystemParser . Namespace forUri ( final String uri ) { } } enum Element { UNKNOWN ( null ) , ORB ( JacORBSubsystemConstants . ORB ) , ORB_CONNECTION ( JacORBSubsystemConstants . ORB_CONN ) , ORB_INITIALIZERS ( JacORBSubsystemConstants . ORB_INIT ) , POA ( JacORBSubsystemConstants . POA ) , POA_REQUEST_PROC ( JacORBSubsystemConstants . POA_RP ) , NAMING ( JacORBSubsystemConstants . NAMING ) , INTEROP ( JacORBSubsystemConstants . INTEROP ) , SECURITY ( JacORBSubsystemConstants . SECURITY ) , PROPERTIES ( JacORBSubsystemConstants . PROPERTIES ) , PROPERTY ( JacORBSubsystemConstants . PROPERTY ) ; private final String name ; Element ( final String name ) { } public String getLocalName ( ) { } private static final Map < String , JacORBSubsystemParser . Element > MAP ; public static JacORBSubsystemParser . Element forName ( String localName ) { } }

Fix:
this . parseAttributes ( reader , node , attributes , null ) ;