Buggy code:
final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case NAME : { serverName = NAME . parse ( value , reader . getLocation ( ) ) ; break ; } default : throw 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 unexpectedAttribute ( reader , i ) ; } } break ; } default : throw unexpectedAttribute ( reader , i ) ; } } setServerName ( address , list , serverName ) ; Element element = nextElement ( reader , namespace ) ; if ( element == ( Element . EXTENSIONS ) ) { extensionXml . parseExtensions ( reader , address , namespace , list ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . SYSTEM_PROPERTIES ) ) { parseSystemProperties ( reader , address , namespace , list , true ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . PATHS ) ) { parsePaths ( reader , address , namespace , list , true ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . VAULT ) ) { parseVault ( reader , address , namespace , list ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . MANAGEMENT ) ) { ManagementXml managementXml = new ManagementXml ( this ) ; managementXml . parseManagement ( reader , address , namespace , list , true , false ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . PROFILE ) ) { parseServerProfile ( reader , address , list ) ; element = nextElement ( reader , namespace ) ; } final Set < String > interfaceNames = new HashSet < String > ( ) ; if ( element == ( Element . INTERFACES ) ) { parseInterfaces ( reader , interfaceNames , address , namespace , list , true ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . SOCKET_BINDING_GROUP ) ) { parseSocketBindingGroup_1_1 ( reader , interfaceNames , address , namespace , list ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . DEPLOYMENTS ) ) { parseDeployments ( reader , address , namespace , list , EnumSet . of ( Attribute . NAME , RUNTIME_NAME , ENABLED ) , EnumSet . of ( CONTENT , FS_ARCHIVE , FS_EXPLODED ) ) ; element = nextElement ( reader , namespace ) ; } if ( element == ( Element . DEPLOYMENT_OVERLAYS ) ) { <START_BUG> parseDeploymentOverlays ( reader , namespace , new ModelNode ( ) , list ) ; <END_BUG> element = nextElement ( reader , namespace ) ; } if ( element != null ) { throw unexpectedElement ( reader ) ; } } @ Override public void parseManagementInterfaces ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseManagementInterfaces_1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseHttpManagementInterface1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseNativeManagementInterface1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseManagementInterfaces_1_1 ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseManagementInterface1_1 ( XMLExtendedStreamReader reader , ModelNode address , boolean http , Namespace expectedNs , List < ModelNode > list ) throws XMLStreamException { } private void parseNativeManagementSocket ( XMLExtendedStreamReader reader , ModelNode addOp ) throws XMLStreamException { } private void parseHttpManagementSocket ( XMLExtendedStreamReader reader , ModelNode addOp ) throws XMLStreamException { } private void parseHttpManagementSocketBinding ( XMLExtendedStreamReader reader , ModelNode addOp ) throws XMLStreamException { } private void parseNativeManagementSocketBinding ( XMLExtendedStreamReader reader , ModelNode addOp ) throws XMLStreamException { } private void parseNativeRemotingManagementInterface ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseSocketBindingGroup_1_0 ( final XMLExtendedStreamReader reader , final Set < String > interfaces , final ModelNode address , final Namespace expectedNs , final List < ModelNode > updates ) throws XMLStreamException { } private void parseSocketBindingGroup_1_1 ( final XMLExtendedStreamReader reader , final Set < String > interfaces , final ModelNode address , final Namespace expectedNs , final List < ModelNode > updates ) throws XMLStreamException { } private void parseServerProfile ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void setServerName ( final ModelNode address , final List < ModelNode > operationList , final ModelNode value ) { } public void writeContent ( final XMLExtendedStreamWriter writer , final ModelMarshallingContext context ) throws XMLStreamException { } private void writeServerDeployments ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } private void writeServerProfile ( final XMLExtendedStreamWriter writer , final ModelMarshallingContext context ) throws XMLStreamException { } @ Override public void writeNativeManagementProtocol ( final XMLExtendedStreamWriter writer , final ModelNode protocol ) throws XMLStreamException { } @ Override public void writeHttpManagementProtocol ( final XMLExtendedStreamWriter writer , final ModelNode protocol ) throws XMLStreamException { } }

Fix:
parseDeploymentOverlays ( reader , namespace , new ModelNode ( ) , list , true , true ) ;