Buggy code:
class NewSharedWebMetaDataBuilder { static final List < String > welcomeFiles = Arrays . asList ( new String [ ] { "index.html" , "index.htm" , "index.jsp" } ) ; static final List < MimeMappingMetaData > mimeMappings = new ArrayList < MimeMappingMetaData > ( ) ; private final ModelNode containerConfig ; NewSharedWebMetaDataBuilder ( final ModelNode containerConfig ) { } private void init ( ) { } WebMetaData create ( ) { } void enableStaticResouces ( final WebMetaData metadata ) { } void enableJsp ( final WebMetaData metadata ) { final ModelNode config = containerConfig . get ( JSP_CONFIGURATION ) ; <START_BUG> if ( config . get ( DISABLED ) . asBoolean ( ) ) { <END_BUG> return ; } final ServletMetaData servlet = new ServletMetaData ( ) ; servlet . setName ( "jsp" ) ; servlet . setLoadOnStartup ( ( "" + 3 ) ) ; servlet . setServletClass ( "org.apache.jasper.servlet.JspServlet" ) ; final List < ParamValueMetaData > initParams = new ArrayList < ParamValueMetaData > ( ) ; if ( config . has ( DEVELOPMENT ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "development" , config . get ( DEVELOPMENT ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "development" , "false" ) ) ; } if ( config . has ( KEEP_GENERATED ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "keepgenerated" , config . get ( KEEP_GENERATED ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "keepgenerated" , "true" ) ) ; } if ( config . has ( TRIM_SPACES ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "trimSpaces" , config . get ( TRIM_SPACES ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "trimSpaces" , "false" ) ) ; } if ( config . has ( TAG_POOLING ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "enablePooling" , config . get ( TAG_POOLING ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "enablePooling" , "true" ) ) ; } if ( config . has ( MAPPED_FILE ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "mappedfile" , config . get ( MAPPED_FILE ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "mappedfile" , "true" ) ) ; } if ( config . has ( CHECK_INTERVAL ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "checkInterval" , config . get ( CHECK_INTERVAL ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "checkInterval" , "0" ) ) ; } if ( config . has ( MODIFIFICATION_TEST_INTERVAL ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "modificationTestIntervale" , config . get ( MODIFIFICATION_TEST_INTERVAL ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "modificationTestInterval" , "4" ) ) ; } if ( config . has ( RECOMPILE_ON_FAIL ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "recompileOnFail" , config . get ( RECOMPILE_ON_FAIL ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "recompileOnFail" , "false" ) ) ; } if ( config . has ( SMAP ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "suppressSmap" , config . get ( SMAP ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "suppressSmap" , "false" ) ) ; } if ( config . has ( DUMP_SMAP ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "dumpSmap" , config . get ( DUMP_SMAP ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "dumpSmap" , "false" ) ) ; } if ( config . has ( GENERATE_STRINGS_AS_CHAR_ARRAYS ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "genStringAsCharArray" , config . get ( GENERATE_STRINGS_AS_CHAR_ARRAYS ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "genStringAsCharArray" , "false" ) ) ; } if ( config . has ( ERROR_ON_USE_BEAN_INVALID_CLASS_ATTRIBUTE ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "errorOnUseBeanInvalidClassAttribute" , config . get ( ERROR_ON_USE_BEAN_INVALID_CLASS_ATTRIBUTE ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "errorOnUseBeanInvalidClassAttribute" , "false" ) ) ; } if ( config . has ( SCRATCH_DIR ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "scratchdir" , config . get ( SCRATCH_DIR ) . asString ( ) ) ) ; } if ( config . has ( SOURCE_VM ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "compilerSourceVM" , config . get ( SOURCE_VM ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "compilerSourceVM" , "1.5" ) ) ; } if ( config . has ( TARGET_VM ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "compilerTargetVM" , config . get ( TARGET_VM ) . asString ( ) ) ) ; } else { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "compilerTargetVM" , "1.5" ) ) ; } if ( config . has ( JAVA_ENCODING ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "javaEncoding" , config . get ( JAVA_ENCODING ) . asString ( ) ) ) ; } else initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "javaEncoding" , "UTF8" ) ) ; if ( config . has ( X_POWERED_BY ) ) { initParams . add ( NewSharedWebMetaDataBuilder . createParameter ( "xpoweredBy" , config . get ( X_POWERED_BY ) . asString ( ) ) ) ; }

Fix:
if ( config . get ( DISABLED ) . asBoolean ( false ) ) {