Buggy code:
public class StandaloneXml extends CommonXml implements ManagementXml . Delegate { private final ExtensionXml extensionXml ; private final ExtensionRegistry extensionRegistry ; public StandaloneXml ( final ModuleLoader loader , final ExecutorService executorService , final ExtensionRegistry extensionRegistry ) { } public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > operationList ) throws XMLStreamException { } private void readServerElement_1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void readServerElement_1_1 ( final Namespace namespace , final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void readServerElement_1_4 ( final Namespace namespace , final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } @ 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 { ModelNode modelNode = context . getModelNode ( ) ; writer . writeStartDocument ( ) ; writer . writeStartElement ( SERVER . getLocalName ( ) ) ; if ( modelNode . hasDefined ( NAME ) ) { ServerRootResourceDefinition . NAME . marshallAsAttribute ( modelNode , false , writer ) ; } writer . writeDefaultNamespace ( CURRENT . getUriString ( ) ) ; writeNamespaces ( writer , modelNode ) ; writeSchemaLocation ( writer , modelNode ) ; writeNewLine ( writer ) ; if ( modelNode . hasDefined ( EXTENSION ) ) { extensionXml . writeExtensions ( writer , modelNode . get ( EXTENSION ) ) ; writeNewLine ( writer ) ; } if ( modelNode . hasDefined ( SYSTEM_PROPERTY ) ) { writeProperties ( writer , modelNode . get ( SYSTEM_PROPERTY ) , SYSTEM_PROPERTIES , true ) ; writeNewLine ( writer ) ; } if ( modelNode . hasDefined ( PATH ) ) { <START_BUG> writePaths ( writer , modelNode . get ( PATH ) ) ; <END_BUG> writeNewLine ( writer ) ; } if ( ( modelNode . hasDefined ( CORE_SERVICE ) ) && ( modelNode . get ( CORE_SERVICE ) . hasDefined ( VAULT ) ) ) { writeVault ( writer , modelNode . get ( CORE_SERVICE , VAULT ) ) ; writeNewLine ( writer ) ; } if ( ( modelNode . hasDefined ( CORE_SERVICE ) ) && ( modelNode . get ( CORE_SERVICE ) . hasDefined ( MANAGEMENT ) ) ) { ManagementXml managementXml = new ManagementXml ( this ) ; managementXml . writeManagement ( writer , modelNode . get ( CORE_SERVICE , MANAGEMENT ) , true ) ; writeNewLine ( writer ) ; } writeServerProfile ( writer , context ) ; writeNewLine ( writer ) ; if ( modelNode . hasDefined ( INTERFACE ) ) { writeInterfaces ( writer , modelNode . get ( INTERFACE ) ) ; writeNewLine ( writer ) ; } if ( modelNode . hasDefined ( SOCKET_BINDING_GROUP ) ) { Set < String > groups = modelNode . get ( SOCKET_BINDING_GROUP ) . keys ( ) ; if ( ( groups . size ( ) ) > 1 ) { throw MESSAGES . multipleModelNodes ( SOCKET_BINDING_GROUP ) ; } for ( String group : groups ) { writeSocketBindingGroup ( writer , modelNode . get ( SOCKET_BINDING_GROUP , group ) , true ) ; } writeNewLine ( writer ) ; } if ( modelNode . hasDefined ( DEPLOYMENT ) ) { writeServerDeployments ( writer , modelNode . get ( DEPLOYMENT ) ) ; writeNewLine ( writer ) ; } if ( modelNode . hasDefined ( DEPLOYMENT_OVERLAY ) ) { writeDeploymentOverlays ( writer , modelNode . get ( DEPLOYMENT_OVERLAY ) ) ; writeNewLine ( writer ) ; } writer . writeEndElement ( ) ; writeNewLine ( writer ) ; writer . writeEndDocument ( ) ; } private void writeServerDeployments ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } private void writeServerProfile ( final XMLExtendedStreamWriter writer , final ModelMarshallingContext context ) throws XMLStreamException { }

Fix:
writePaths ( writer , modelNode . get ( PATH ) , false ) ;