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 { String hostName = null ; List < ModelNode > namespaceOperations = new LinkedList < ModelNode > ( ) ; parseNamespaces ( reader , address , namespaceOperations ) ; 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 : { hostName = 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 , namespaceOperations , i ) ; break ; } case NO_NAMESPACE_SCHEMA_LOCATION : { break ; } default : { throw ParseUtils . unexpectedAttribute ( reader , i ) ; } } break ; } default : throw ParseUtils . unexpectedAttribute ( reader , i ) ; } } if ( hostName == null ) { hostName = getDefaultName ( ) ; } addLocalHost ( address , list , hostName ) ; for ( ModelNode operation : namespaceOperations ) { operation . get ( OP_ADDR ) . set ( address ) ; list . add ( operation ) ; } Element element = ParseUtils . nextElement ( reader ) ; if ( element == ( Element . SYSTEM_PROPERTIES ) ) { parseSystemProperties ( reader , address , list , false ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . PATHS ) ) { parsePaths ( reader , address , list , true ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . MANAGEMENT ) ) { <START_BUG> parseManagement ( reader , address , list , true ) ; <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 ) ; } } private void addLocalHost ( final ModelNode address , final List < ModelNode > operationList , final String hostName ) { } 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 { } private void writeDomainController ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } private void writeServers ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } }

Fix:
parseManagement ( reader , address , list ) ;