Buggy code:
public class LoggingSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { static final LoggingSubsystemParser INSTANCE = new LoggingSubsystemParser ( ) ; private LoggingSubsystemParser ( ) { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > list ) throws XMLStreamException { if ( ( reader . getAttributeCount ( ) ) > 0 ) { throw unexpectedAttribute ( reader , 0 ) ; } final ModelNode address = new ModelNode ( ) ; address . add ( SUBSYSTEM , SUBSYSTEM_NAME ) ; address . protect ( ) ; <START_BUG> list . add ( NewLoggingSubsystemAdd . createOperation ( address ) ) ; <END_BUG> final Set < String > loggerNames = new HashSet < String > ( ) ; final Set < String > handlerNames = new HashSet < String > ( ) ; boolean gotRoot = false ; while ( ( reader . hasNext ( ) ) && ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) ) { switch ( Namespace . forUri ( reader . getNamespaceURI ( ) ) ) { case LOGGING_1_0 : case LOGGING_1_1 : { final Element element = Element . forName ( reader . getLocalName ( ) ) ; switch ( element ) { case CommonAttributes . LOGGER : { LoggingSubsystemParser . parseLoggerElement ( reader , address , list , loggerNames ) ; break ; } case CommonAttributes . ROOT_LOGGER : { if ( gotRoot ) { throw unexpectedElement ( reader ) ; } gotRoot = true ; LoggingSubsystemParser . parseRootLoggerElement ( reader , address , list ) ; break ; } case CommonAttributes . CONSOLE_HANDLER : { LoggingSubsystemParser . parseConsoleHandlerElement ( reader , address , list , handlerNames ) ; break ; } case CommonAttributes . FILE_HANDLER : { LoggingSubsystemParser . parseFileHandlerElement ( reader , address , list , handlerNames ) ; break ; } case CommonAttributes . CUSTOM_HANDLER : { LoggingSubsystemParser . parseCustomHandlerElement ( reader , address , list , handlerNames ) ; break ; } case CommonAttributes . PERIODIC_ROTATING_FILE_HANDLER : { LoggingSubsystemParser . parsePeriodicRotatingFileHandlerElement ( reader , address , list , handlerNames ) ; break ; } case CommonAttributes . SIZE_ROTATING_FILE_HANDLER : { LoggingSubsystemParser . parseSizeRotatingHandlerElement ( reader , address , list , handlerNames ) ; break ; } case CommonAttributes . ASYNC_HANDLER : { LoggingSubsystemParser . parseAsyncHandlerElement ( reader , address , list , handlerNames ) ; break ; } default : { reader . handleAny ( list ) ; break ; } } break ; } default : { throw unexpectedElement ( reader ) ; } } } } 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 parseCustomHandlerElement ( 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 void parseFileElement ( final ModelNode node , 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 void parsePropertyElement ( final ModelNode node , final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static void parseHandlersElement ( final ModelNode node , final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static void parseFilter ( final ModelNode node , final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static void parseFilterChildren ( final ModelNode node , final XMLExtendedStreamReader reader ) throws XMLStreamException { } private static void parseRequiredAttribute ( final SimpleAttributeDefinition attribute , final XMLExtendedStreamReader reader , final ModelNode node ) throws XMLStreamException { } private static void parseAttribute ( final SimpleAttributeDefinition attribute , final XMLExtendedStreamReader reader , final ModelNode node ) 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 writeCustomHandler ( 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 { }

Fix:
list . add ( LoggingSubsystemAdd . createOperation ( address ) ) ;