Buggy code:
public class NewLoggingSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { private static final NewLoggingSubsystemParser INSTANCE = new NewLoggingSubsystemParser ( ) ; public static NewLoggingSubsystemParser getInstance ( ) { } private NewLoggingSubsystemParser ( ) { } @ 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 { } private static String parseRefElement ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } static String parseLevelElement ( 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 ) throws XMLStreamException { } private void writeFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writePeriodicWritingFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeSizeWritingFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeAsynchWritingFileHandler ( final XMLExtendedStreamWriter writer , final ModelNode node ) 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 { } private void writeAppend ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private boolean has ( ModelNode node , String name ) { <START_BUG> return ( node . has ( name ) ) && ( ( node . get ( name ) ) != null ) ; <END_BUG> } private void writeAttribute ( final XMLExtendedStreamWriter writer , final Attribute attr , final ModelNode value ) throws XMLStreamException { } }

Fix:
return ( node . has ( name ) ) && ( node . get ( name ) . isDefined ( ) ) ;