Buggy code:
public abstract class CommonXml implements XMLElementReader < List < ModelNode > > , XMLElementWriter < ModelNode > { protected static final Set < String > RESTRICTED_PATHS ; protected final ModuleLoader moduleLoader ; protected final Map < String , XMLElementWriter < ModelNode > > subsystemWriters = new HashMap < String , XMLElementWriter < ModelNode > > ( ) ; protected CommonXml ( final ModuleLoader loader ) { } protected void parseNamespaces ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > nodes ) { } protected void readHeadComment ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > nodes ) throws XMLStreamException { } protected void readTailComment ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > nodes ) throws XMLStreamException { } protected void parseSchemaLocations ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updateList , final int idx ) throws XMLStreamException { } protected void writeSchemaLocation ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } protected void writeNamespaces ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } protected void writeExtensions ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } protected void writePaths ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } protected void parseExtensions ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } protected void parsePaths ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final boolean requirePath ) throws XMLStreamException { } protected void parsePath ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final boolean requirePath , final Set < String > defined ) throws XMLStreamException { } protected void parseSystemProperties ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } protected ModelNode parseProperties ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } protected void parseManagementSocket ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } protected void parseJvm ( final XMLExtendedStreamReader reader , final ModelNode parentAddress , final List < ModelNode > updates , final Set < String > jvmNames ) throws XMLStreamException { } private void parseHeap ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } private void parsePermgen ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } private void parseStack ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } private void parseAgentLib ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } private void parseAgentPath ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } private void parseJavaagent ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } private void parseJvmOptions ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } protected void parseInterfaceCriteria ( final XMLExtendedStreamReader reader , final ModelNode criteria ) throws XMLStreamException { } protected void parseCompoundInterfaceCriterion ( final XMLExtendedStreamReader reader , final ModelNode criterion ) throws XMLStreamException { } protected void parseSimpleInterfaceCriterion ( final XMLExtendedStreamReader reader , final ModelNode criteria ) throws XMLStreamException { } protected void parseInterfaces ( final XMLExtendedStreamReader reader , final Set < String > names , final ModelNode address , final List < ModelNode > list , final boolean checkSpecified ) throws XMLStreamException { } protected void parseSocketBindingGroupRef ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > updates ) throws XMLStreamException { } protected String parseSocketBinding ( final XMLExtendedStreamReader reader , final Set < String > interfaces , final ModelNode address , final String inheritedInterfaceName , final List < ModelNode > updates ) throws XMLStreamException { } protected void writeInterfaces ( final XMLExtendedStreamWriter writer , final ModelNode modelNode ) throws XMLStreamException { } private void writeInterfaceCriteria ( final XMLExtendedStreamWriter writer , final List < ModelNode > criteria ) throws XMLStreamException { } private void writePropertyInterfaceCriteria ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } private void writeSimpleInterfaceCriteria ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } protected void writeSocketBindingGroup ( XMLExtendedStreamWriter writer , ModelNode bindingGroup , boolean usePortOffset ) throws XMLStreamException { } protected void writeProperties ( final XMLExtendedStreamWriter writer , final ModelNode modelNode , Element element ) throws XMLStreamException { } protected static void writeAttribute ( XMLExtendedStreamWriter writer , Attribute attribute , String value ) throws XMLStreamException { <START_BUG> CommonXml . writeAttribute ( writer , attribute , value ) ; <END_BUG> } protected static boolean hasDefinedChild ( ModelNode node , String child ) { } }

Fix:
writer . writeAttribute ( attribute . getLocalName ( ) , value ) ;