Buggy code:
public final class ThreadsParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { static final ThreadsParser INSTANCE = new ThreadsParser ( ) ; private static String SUBSYSTEM_NAME = "threads" ; public static ThreadsParser getInstance ( ) { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > list ) throws XMLStreamException { } private String readSingleElement ( final XMLExtendedStreamReader reader , final List < ModelNode > list , final ModelNode address ) throws XMLStreamException { } public String parseThreadFactory ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { } public String parseThreadFactory ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list , final String childAddress , final String providedName ) throws XMLStreamException { } public String parseBoundedQueueThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { } public String parseBoundedQueueThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list , final String childAddress , final String providedName ) throws XMLStreamException { } public String parseUnboundedQueueThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { } public String parseUnboundedQueueThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list , final String childAddress , final String providedName ) throws XMLStreamException { } public String parseScheduledThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { } public String parseScheduledThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list , final String childAddress , final String providedName ) throws XMLStreamException { } public String parseQueuelessThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { } public String parseQueuelessThreadPool ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > list , final String childAddress , final String providedName ) throws XMLStreamException { } private ModelNode parseScaledCount ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private ModelNode parseTimeSpec ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private String parseRef ( XMLExtendedStreamReader reader ) throws XMLStreamException { } private ModelNode parseProperties ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final SubsystemMarshallingContext context ) throws XMLStreamException { } public void writeThreadsElement ( final XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } public void writeThreadFactory ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeThreadFactory ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName ) throws XMLStreamException { } public void writeBoundedQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeBoundedQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName ) throws XMLStreamException { } public void writeQueuelessThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeQueuelessThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName ) throws XMLStreamException { } public void writeScheduledQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeScheduledQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName ) throws XMLStreamException { } public void writeUnboundedQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeUnboundedQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName ) throws XMLStreamException { writer . writeStartElement ( elementName ) ; if ( includeName && ( node . hasDefined ( CommonAttributes . NAME ) ) ) { <START_BUG> writeAttribute ( writer , BLOCKING , node . get ( CommonAttributes . NAME ) ) ; <END_BUG> } writeRef ( writer , node , THREAD_FACTORY , CommonAttributes . THREAD_FACTORY ) ; writeThreads ( writer , node , MAX_THREADS ) ; writeTime ( writer , node , KEEPALIVE_TIME ) ; if ( node . hasDefined ( CommonAttributes . PROPERTIES ) ) { writeProperties ( writer , node . get ( CommonAttributes . PROPERTIES ) ) ; } writer . writeEndElement ( ) ; } private void writeRef ( final XMLExtendedStreamWriter writer , final ModelNode node , Element element , String name ) throws XMLStreamException { } private void writeThreads ( final XMLExtendedStreamWriter writer , final ModelNode node , Element element ) throws XMLStreamException { } private void writeTime ( final XMLExtendedStreamWriter writer , final ModelNode node , Element element ) throws XMLStreamException { } private void writeProperties ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeAttribute ( final XMLExtendedStreamWriter writer , final Attribute attr , final ModelNode value ) throws XMLStreamException { } }

Fix:
writeAttribute ( writer , NAME , node . get ( CommonAttributes . NAME ) ) ;