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 ( 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 { } private void parseServers ( 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 serverAddress , final Namespace expectedNs , final List < ModelNode > list ) throws XMLStreamException { } private void parseServerContent1_1 ( final XMLExtendedStreamReader reader , 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 address , final List < ModelNode > updates ) 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 { for ( Property property : ignoredTypes . asPropertyList ( ) ) { ModelNode ignored = property . getValue ( ) ; ModelNode names = ( ignored . hasDefined ( NAMES ) ) ? ignored . get ( NAMES ) : null ; boolean hasNames = ( names != null ) && ( ( names . asInt ( ) ) > 0 ) ; if ( hasNames ) { writer . writeStartElement ( IGNORED_RESOURCE . getLocalName ( ) ) ; } else { writer . writeEmptyElement ( IGNORED_RESOURCE . getLocalName ( ) ) ; } <START_BUG> writer . writeAttribute ( NAME . getLocalName ( ) , property . getName ( ) ) ; <END_BUG> WILDCARD . marshallAsAttribute ( ignored , writer ) ; if ( hasNames ) { for ( ModelNode name : names . asList ( ) ) { writer . writeEmptyElement ( INSTANCE . getLocalName ( ) ) ; writer . writeAttribute ( NAME . getLocalName ( ) , name . asString ( ) ) ; } writer . writeEndElement ( ) ; } } } private void writeServers ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } }

Fix:
writer . writeAttribute ( TYPE . getLocalName ( ) , property . getName ( ) ) ;