Buggy code:
public class LoggingSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { private static final LoggingSubsystemParser INSTANCE = new LoggingSubsystemParser ( ) ; public static LoggingSubsystemParser getInstance ( ) { } private LoggingSubsystemParser ( ) { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > list ) throws XMLStreamException { } static void parseLoggerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > names ) throws XMLStreamException { } static void parseAsyncHandlerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > names ) throws XMLStreamException { } static void parseRootLoggerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } static void parseConsoleHandlerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > names ) throws XMLStreamException { } static void parseFileHandlerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > names ) throws XMLStreamException { } static void parsePeriodicRotatingFileHandlerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > names ) throws XMLStreamException { } static void parseSizeRotatingHandlerElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list , final Set < String > names ) throws XMLStreamException { } private static final Pattern SIZE_PATTERN = Pattern . compile ( "(\\d+)([kKmMgGbBtT])?" ) ; private static long parseSize ( final String value ) { } private static ModelNode parseFileElement ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static String parseFormatterElement ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static String parsePatternFormatterElement ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static ModelNode parseHandlersElement ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final SubsystemMarshallingContext context ) throws XMLStreamException { } private void writeConsoleHandler ( final XMLExtendedStreamWriter writer , final ModelNode node , final String name ) throws XMLStreamException { } private void writeFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node , final String name ) throws XMLStreamException { } private void writePeriodicRotatingFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node , final String name ) throws XMLStreamException { } private void writeSizeRotatingFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node , final String name ) throws XMLStreamException { } private void writeAsynchHandler ( final XMLExtendedStreamWriter writer , final ModelNode node , final String name ) throws XMLStreamException { } private void writeLogger ( final XMLExtendedStreamWriter writer , String name , final ModelNode node ) throws XMLStreamException { } private void writeRootLogger ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeLevel ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeFilter ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeProperties ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeFormatter ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeFile ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeEncoding ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeHandlers ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeHandlersContent ( final XMLExtendedStreamWriter writer , Element element , final ModelNode handlers ) throws XMLStreamException { if ( ( handlers . getType ( ) ) == ( ModelType . LIST ) ) { <START_BUG> writer . writeStartElement ( HANDLERS . getLocalName ( ) ) ; <END_BUG> for ( ModelNode handler : handlers . asList ( ) ) { if ( handler . isDefined ( ) ) { writer . writeStartElement ( HANDLER . getLocalName ( ) ) ; writeAttribute ( writer , NAME , handler ) ; writer . writeEndElement ( ) ; } } writer . writeEndElement ( ) ; } } private void writeAppend ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeAttribute ( final XMLExtendedStreamWriter writer , final Attribute attr , final ModelNode value ) throws XMLStreamException { } }

Fix:
writer . writeStartElement ( element . getLocalName ( ) ) ;