Buggy code:
public class DomainXml extends CommonXml { public DomainXml ( final ModuleLoader loader ) { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > nodes ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final ModelMarshallingContext context ) throws XMLStreamException { } void readDomainElement ( 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 DOMAIN_1_0 : { throw ParseUtils . unexpectedAttribute ( reader , i ) ; } 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 . SYSTEM_PROPERTIES ) ) { parseSystemProperties ( reader , address , list , false ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . PATHS ) ) { <START_BUG> parsePaths ( reader , address , list , true ) ; <END_BUG> element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . PROFILES ) ) { parseProfiles ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } final Set < String > interfaceNames = new HashSet < String > ( ) ; if ( element == ( Element . INTERFACES ) ) { parseInterfaces ( reader , interfaceNames , address , list , false ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . SOCKET_BINDING_GROUPS ) ) { parseDomainSocketBindingGroups ( reader , address , list , interfaceNames ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . DEPLOYMENTS ) ) { parseDeployments ( reader , address , list , false ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element == ( Element . SERVER_GROUPS ) ) { parseServerGroups ( reader , address , list ) ; element = ParseUtils . nextElement ( reader ) ; } if ( element != null ) { throw ParseUtils . unexpectedElement ( reader ) ; } } void parseDomainSocketBindingGroups ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > interfaces ) throws XMLStreamException { } void parseSocketBindingGroup ( final XMLExtendedStreamReader reader , final Set < String > interfaces , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } void parseServerGroups ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } void parseProfiles ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void writeProfile ( final XMLExtendedStreamWriter writer , final String profileName , final ModelNode profileNode , final ModelMarshallingContext context ) throws XMLStreamException { } private void writeDomainDeployments ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } private void writeServerGroupDeployments ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } private void writeServerGroup ( final XMLExtendedStreamWriter writer , final String groupName , final ModelNode group ) throws XMLStreamException { } }

Fix:
parsePaths ( reader , address , list , false ) ;