Buggy code:
public String parseBoundedQueueThreadPool ( final XMLExtendedStreamReader reader , final String expectedNs , final Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName ) throws XMLStreamException { } private void parseUnknownBoundedQueueThreadPool1_0 ( final XMLExtendedStreamReader reader , final String expectedNs , final ModelNode parentAddress , final List < ModelNode > list ) throws XMLStreamException { } private String parseBoundedQueueThreadPool1_0 ( final XMLExtendedStreamReader reader , final String expectedNs , final Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName , final boolean blocking ) throws XMLStreamException { } private String parseBoundedQueueThreadPool1_1 ( final XMLExtendedStreamReader reader , final String expectedNs , final Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName , final boolean blocking ) throws XMLStreamException { } public String parseUnboundedQueueThreadPool ( final XMLExtendedStreamReader reader , String expectedNs , Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName ) throws XMLStreamException { } public String parseScheduledThreadPool ( final XMLExtendedStreamReader reader , String expectedNs , Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName ) throws XMLStreamException { } public String parseBlockingQueuelessThreadPool ( final XMLExtendedStreamReader reader , String expectedNs , Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName ) throws XMLStreamException { } public String parseQueuelessThreadPool ( final XMLExtendedStreamReader reader , String expectedNs , Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName ) throws XMLStreamException { } private void parseUnknownQueuelessThreadPool1_0 ( XMLExtendedStreamReader reader , String readerNS , ModelNode subsystemAddress , List < ModelNode > list ) throws XMLStreamException { } private String parseQueuelessThreadPool1_0 ( final XMLExtendedStreamReader reader , String expectedNs , Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName , final boolean blocking ) throws XMLStreamException { } private String parseQueuelessThreadPool1_1 ( final XMLExtendedStreamReader reader , String expectedNs , Namespace threadsNamespace , final ModelNode parentAddress , final List < ModelNode > list , final String childType , final String providedName , boolean blocking ) throws XMLStreamException { } private String parseCount ( final XMLExtendedStreamReader reader , Namespace expectedNS ) throws XMLStreamException { } private String parseScaledCount ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static int getScaledCount ( BigDecimal count , BigDecimal perCpu ) { } private ModelNode parseTimeSpec ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private void parseProperties ( final XMLExtendedStreamReader reader , final Namespace threadsNamespace ) throws XMLStreamException { } private static Element nextElement ( XMLExtendedStreamReader reader , String expectedNamespace ) 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 writeBlockingBoundedQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeBlockingBoundedQueueThreadPool ( 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 writeBoundedQueueThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName , final boolean blocking ) throws XMLStreamException { } private void writeCountElement ( AttributeDefinition attributeDefinition , ModelNode model , XMLExtendedStreamWriter writer ) throws XMLStreamException { } public void writeBlockingQueuelessThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } public void writeBlockingQueuelessThreadPool ( 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 { } private void writeQueuelessThreadPool ( final XMLExtendedStreamWriter writer , final ModelNode node , final String elementName , final boolean includeName , final boolean blocking ) 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 { } private void writeRef ( final XMLExtendedStreamWriter writer , final ModelNode node , Element element , String name ) throws XMLStreamException { } private void writeTime ( final XMLExtendedStreamWriter writer , final ModelNode node , Element element ) throws XMLStreamException { } private void writeAttribute ( final XMLExtendedStreamWriter writer , final Attribute attr , final ModelNode value ) throws XMLStreamException { } private void writeAttributeLowerCaseValue ( final XMLExtendedStreamWriter writer , final Attribute attr , final ModelNode value ) throws XMLStreamException { <START_BUG> writer . writeAttribute ( attr . getLocalName ( ) , value . asString ( ) . toLowerCase ( ) ) ; <END_BUG> } }

Fix:
writer . writeAttribute ( attr . getLocalName ( ) , value . asString ( ) . toLowerCase ( Locale . ENGLISH ) ) ;