Buggy code:
class SharedWebMetaDataBuilder { static final List < String > welcomeFiles = new ArrayList < String > ( ) ; static final List < MimeMappingMetaData > mimeMappings = new ArrayList < MimeMappingMetaData > ( ) ; private final ModelNode config ; SharedWebMetaDataBuilder ( final ModelNode containerConfig ) { } private void init ( ) { } WebMetaData create ( ) { } void enableStaticResouces ( final WebMetaData metadata ) { } void enableJsp ( final WebMetaData metadata ) { final ModelNode config = this . config . get ( JSP_CONFIGURATION ) ; if ( config . get ( DISABLED ) . asBoolean ( false ) ) { 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 > ( ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "development" , config . require ( DEVELOPMENT ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "keepgenerated" , config . require ( KEEP_GENERATED ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "trimSpaces" , config . require ( TRIM_SPACES ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "enablePooling" , config . require ( TAG_POOLING ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "mappedfile" , config . require ( MAPPED_FILE ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "checkInterval" , config . require ( CHECK_INTERVAL ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "modificationTestInterval" , config . require ( MODIFICATION_TEST_INTERVAL ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "recompileOnFail" , config . require ( RECOMPILE_ON_FAIL ) . asString ( ) ) ) ; <START_BUG> initParams . add ( SharedWebMetaDataBuilder . createParameter ( "suppressSmap" , config . require ( SMAP ) . asString ( ) ) ) ; <END_BUG> initParams . add ( SharedWebMetaDataBuilder . createParameter ( "dumpSmap" , config . require ( DUMP_SMAP ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "genStringAsCharArray" , config . require ( GENERATE_STRINGS_AS_CHAR_ARRAYS ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "errorOnUseBeanInvalidClassAttribute" , config . require ( ERROR_ON_USE_BEAN_INVALID_CLASS_ATTRIBUTE ) . asString ( ) ) ) ; if ( config . hasDefined ( SCRATCH_DIR ) ) { initParams . add ( SharedWebMetaDataBuilder . createParameter ( "scratchdir" , config . require ( SCRATCH_DIR ) . asString ( ) ) ) ; } initParams . add ( SharedWebMetaDataBuilder . createParameter ( "compilerSourceVM" , config . require ( SOURCE_VM ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "compilerTargetVM" , config . require ( TARGET_VM ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "javaEncoding" , config . require ( JAVA_ENCODING ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "xpoweredBy" , config . require ( X_POWERED_BY ) . asString ( ) ) ) ; initParams . add ( SharedWebMetaDataBuilder . createParameter ( "displaySourceFragment" , config . require ( DISPLAY_SOURCE_FRAGMENT ) . asString ( ) ) ) ; servlet . setInitParam ( initParams ) ; metadata . getServlets ( ) . add ( servlet ) ; SharedWebMetaDataBuilder . addServletMapping ( "jsp" , metadata , "*.jsp" , "*.jspx" ) ; } static ParamValueMetaData createParameter ( String name , String value ) { } static void addServletMapping ( final String servlet , final WebMetaData metadata , String ... names ) { } static MimeMappingMetaData createMimeMapping ( String extension , String mimeType ) { } static void createMappings ( final List < MimeMappingMetaData > mappings ) { } }

Fix:
initParams . add ( SharedWebMetaDataBuilder . createParameter ( "suppressSmap" , Boolean . toString ( ( ! ( config . require ( SMAP ) . asBoolean ( ) ) ) ) ) ) ;