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 { } 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 { while ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) { final int cnt = reader . getAttributeCount ( ) ; String name = null ; String value = null ; for ( int i = 0 ; i < cnt ; i ++ ) { requireNoNamespaceAttribute ( reader , i ) ; final String attrValue = reader . getAttributeValue ( i ) ; final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; switch ( attribute ) { case CommonAttributes . NAME : { name = attrValue ; break ; } case VALUE : { value = attrValue ; break ; } default : throw unexpectedAttribute ( reader , i ) ; } } if ( name == null ) { throw missingRequired ( reader , Collections . singleton ( NAME . getLocalName ( ) ) ) ; } <START_BUG> node . get ( CommonAttributes . PROPERTIES ) . set ( new org . jboss . dmr . Property ( name , new ModelNode ( ) . set ( value ) ) ) ; <END_BUG> if ( ( reader . nextTag ( ) ) != ( XMLStreamConstants . END_ELEMENT ) ) { throw unexpectedElement ( reader ) ; } } } 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 { } private void writeLevel ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeFilter ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeFilterChildren ( 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 { } private void writeAppend ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { }

Fix:
node . get ( CommonAttributes . PROPERTIES ) . add ( name , new ModelNode ( ) . set ( value ) ) ;