Buggy code:
public class HostXml extends CommonXml { public HostXml ( final ModuleLoader loader ) { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > operationList ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final ModelMarshallingContext context ) throws XMLStreamException { } private void readHostElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { parseNamespaces ( reader , address , list ) ; final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { switch ( Namespace . forUri ( reader . getAttributeNamespace ( i ) ) ) { case NONE : { final String value = reader . getAttributeValue ( i ) ; final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case NAME : { setHostName ( address , list , value ) ; break ; } default : throw ParseUtils . unexpectedAttribute ( reader , i ) ; } break ; } case XML_SCHEMA_INSTANCE : { switch ( Attribute . forName ( reader . getAttributeLocalName ( i ) ) ) { case SCHEMA_LOCATION : { parseSchemaLocations ( reader , address , list , i ) ; break ; } case NO_NAMESPACE_SCHEMA_LOCATION : { break ; } default : { throw ParseUtils . unexpectedAttribute ( reader , i ) ; } } break ; } default : throw ParseUtils . unexpectedAttribute ( reader , i ) ; } } Element element = ParseUtils . nextElement ( reader ) ; if ( element == ( Element . EXTENSIONS ) ) { parseExtensions ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . PATHS ) ) { parsePaths ( reader , address , list , true ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . SYSTEM_PROPERTIES ) ) { parseSystemProperties ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . MANAGEMENT ) ) { <START_BUG> parseManagementSocket ( reader , address , list ) ; <END_BUG> element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . DOMAIN_CONTROLLER ) ) { parseDomainController ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } final Set < String > interfaceNames = new HashSet < String > ( ) ; if ( element == ( Element . INTERFACES ) ) { parseInterfaces ( reader , interfaceNames , address , list , true ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . JVMS ) ) { parseJvms ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . SERVERS ) ) { parseServers ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } for ( ; ; ) { switch ( reader . nextTag ( ) ) { case XMLStreamConstants . START_ELEMENT : { readHeadComment ( reader , address , list ) ; if ( ( Namespace . forUri ( reader . getNamespaceURI ( ) ) ) != ( Namespace . DOMAIN_1_0 ) ) { throw ParseUtils . unexpectedElement ( reader ) ; } switch ( Element . forName ( reader . getLocalName ( ) ) ) { default : throw ParseUtils . unexpectedElement ( reader ) ; } } case XMLStreamConstants . END_ELEMENT : { readTailComment ( reader , address , list ) ; return ; } default : throw new IllegalStateException ( ) ; } } } private void setHostName ( final ModelNode address , final List < ModelNode > operationList , final String value ) { } private void parseDomainController ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseRemoteDomainController ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseJvms ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseServers ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseServer ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list , final Set < String > serverNames ) throws XMLStreamException { } }

Fix:
parseNativeManagementSocket ( reader , address , list ) ;