Buggy code:
class TransactionSubsystem14Parser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > { public static final TransactionSubsystem14Parser INSTANCE = new TransactionSubsystem14Parser ( Namespace . TRANSACTIONS_1_4 ) ; private final Namespace validNamespace ; TransactionSubsystem14Parser ( Namespace validNamespace ) { } protected boolean choiceObjectStoreEncountered ; protected Namespace getExpectedNamespace ( ) { } @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { } protected void readElement ( final XMLExtendedStreamReader reader , final Element element , final List < ModelNode > operations , final ModelNode subsystemOperation , final ModelNode logStoreOperation ) throws XMLStreamException { } protected void parseJts ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } protected void parseUsehornetqstore ( final XMLExtendedStreamReader reader , final ModelNode logStoreOperation , final ModelNode operation ) throws XMLStreamException { } protected void parseObjectStoreEnvironmentElementAndEnrichOperation ( final XMLExtendedStreamReader reader , ModelNode operation ) throws XMLStreamException { } protected void parseJdbcStoreElementAndEnrichOperation ( final XMLExtendedStreamReader reader , final ModelNode logStoreOperation , ModelNode operation ) throws XMLStreamException { } protected void parseJdbcStoreConfigElementAndEnrichOperation ( final XMLExtendedStreamReader reader , final ModelNode operation , final SimpleAttributeDefinition tablePrefix , final SimpleAttributeDefinition dropTable ) throws XMLStreamException { } protected void parseCoordinatorEnvironmentElement ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } protected void parseCoreEnvironmentElement ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } protected void parseProcessIdEnvironmentElement ( XMLExtendedStreamReader reader , ModelNode coreEnvironmentAdd ) throws XMLStreamException { } protected void parseSocketProcessIdElement ( XMLExtendedStreamReader reader , ModelNode coreEnvironmentAdd ) throws XMLStreamException { } protected void parseRecoveryEnvironmentElement ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { Set < Attribute > required = EnumSet . of ( BINDING , STATUS_BINDING ) ; final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { requireNoNamespaceAttribute ( reader , i ) ; final String value = reader . getAttributeValue ( i ) ; final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; required . remove ( attribute ) ; switch ( attribute ) { case BINDING : TransactionSubsystemRootResourceDefinition . BINDING . parseAndSetParameter ( value , operation , reader ) ; break ; case STATUS_BINDING : TransactionSubsystemRootResourceDefinition . STATUS_BINDING . parseAndSetParameter ( value , operation , reader ) ; break ; case RECOVERY_LISTENER : RECOVERY_LISTENER . parseAndSetParameter ( value , operation , reader ) ; break ; default : <START_BUG> unexpectedAttribute ( reader , i ) ; <END_BUG> } } if ( ! ( required . isEmpty ( ) ) ) { throw missingRequired ( reader , required ) ; } requireNoContent ( reader ) ; } }

Fix:
throw unexpectedAttribute ( reader , i ) ;