Buggy code:
public class HostXml extends CommonXml implements ManagementXml . Delegate { private final String defaultHostControllerName ; public HostXml ( String defaultHostControllerName ) { } @ 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_1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void readHostElement_1_1 ( 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 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 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 addLocalHost ( final ModelNode address , final List < ModelNode > operationList , final String hostName ) { } private void parseDomainController ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseRemoteDomainController1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseRemoteDomainController1_1 ( final XMLExtendedStreamReader reader , final ModelNode address , Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseRemoteDomainControllerAttributes_1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseRemoteDomainControllerAttributes_1_3 ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseIgnoredResource ( final XMLExtendedStreamReader reader , final ModelNode address , Namespace expectedNs , final List < ModelNode > list , final Set < String > foundTypes ) throws XMLStreamException { } private void parseJvms ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseServersAttributes ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { final String value = reader . getAttributeValue ( i ) ; if ( ! ( isNoNamespaceAttribute ( reader , i ) ) ) { throw unexpectedAttribute ( reader , i ) ; } else { final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case DIRECTORY_GROUPING : { final ModelNode address = parentAddress . clone ( ) ; <START_BUG> list . add ( Util . getWriteAttributeOperation ( address , DIRECTORY_GROUPING , value ) ) ; <END_BUG> break ; } default : throw unexpectedAttribute ( reader , i ) ; } } } } private void parseServers_1_0 ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseServers_1_2 ( final XMLExtendedStreamReader reader , final ModelNode address , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseServer ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final Namespace expectedNs , final List < ModelNode > list , final Set < String > serverNames ) throws XMLStreamException { } private void parseServerContent1_0 ( final XMLExtendedStreamReader reader , final ModelNode serverAddOperation , final ModelNode serverAddress , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseServerContent1_1 ( final XMLExtendedStreamReader reader , final ModelNode serverAddOperation , final ModelNode serverAddress , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private ModelNode parseServerAttributes ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final Set < String > serverNames ) throws XMLStreamException { } private void parseServerSocketBindings ( final XMLExtendedStreamReader reader , final ModelNode serverAddOperation ) 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 { } private void writeDomainController ( final XMLExtendedStreamWriter writer , final ModelNode modelNode , ModelNode ignoredResources ) throws XMLStreamException { } private void writeIgnoredResources ( XMLExtendedStreamWriter writer , ModelNode ignoredTypes ) throws XMLStreamException { } private void writeServers ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } }

Fix:
list . add ( Util . getWriteAttributeOperation ( address , DIRECTORY_GROUPING , HostResourceDefinition . DIRECTORY_GROUPING . parse ( value , reader ) ) ) ;