Buggy code:
private static void loadLib ( ConfigServerImpl configServer , ConfigImpl config ) throws IOException { } private static boolean equal ( Resource [ ] srcs , Resource [ ] trgs ) { } private static Resource [ ] getNewResources ( Resource [ ] srcs , Resource [ ] trgs ) { } private static void loadSecurity ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static Resource [ ] _loadFileAccess ( Config config , Element [ ] fileAccesses ) { } private static SecurityManagerImpl _toSecurityManager ( Element el ) { } private static short _attr ( Element el , String attr , short _default ) { } private static short _attr2 ( Element el , String attr , short _default ) { } static Document loadDocument ( Resource xmlFile ) throws IOException , SAXException { } private static Document _loadDocument ( InputStream is ) throws IOException , SAXException { } static void createConfigFile ( String xmlName , Resource configFile ) throws IOException { } static void createFileFromResource ( String resource , Resource file ) throws IOException { } public static void createFileFromResourceEL ( String resource , Resource file ) { } static void createFileFromResource ( String resource , Resource file , String password ) throws IOException { } static String createMD5FromResource ( String resource ) throws IOException { } static String createContentFromResource ( Resource resource ) throws IOException { } static void createFileFromResourceCheckSizeDiffEL ( String resource , Resource file ) { } static void createFileFromResourceCheckSizeDiff ( String resource , Resource file ) throws IOException { } public static void createContextFiles ( Resource configDir , ServletConfig servletConfig ) throws IOException { } public static void createContextFilesPost ( Resource configDir , ConfigImpl config , ServletConfig servletConfig , boolean isEventGatewayContext ) throws IOException { } private static boolean doNew ( Resource contextDir , boolean readonly ) throws IOException { } private static void doCheckChangesInLibraries ( ConfigImpl config ) { } private static void loadMappings ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) throws IOException { } private static void loadFlex ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static void loadExeLog ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static void loadPagePool ( ConfigServer configServer , Config config , Document doc ) { } private static void loadDataSources ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) throws ClassException { } private static void loadCache ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static String getMD5 ( Node node , String parentMD5 ) { } private static void loadGatewayEL ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static void loadGateway ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) throws IOException { } private static Struct [ ] _toArguments ( ArrayList list ) { } private static String [ ] _toCacheNames ( ArrayList list ) { } protected static String decrypt ( String str ) { } protected static String encrypt ( String str ) { } private static Struct toStruct ( String str ) { } private static void setDatasource ( ConfigImpl config , Map < String , DataSource > datasources , String datasourceName , String className , String server , String databasename , int port , String dsn , String user , String pass , int connectionLimit , int connectionTimeout , long metaCacheTimeout , boolean blob , boolean clob , int allow , boolean validate , boolean storage , String timezone , Struct custom ) throws ClassException { <START_BUG> datasources . put ( datasourceName . toLowerCase ( ) , new railo . runtime . db . DataSourceImpl ( datasourceName , className , server , dsn , databasename , port , user , pass , connectionLimit , connectionTimeout , metaCacheTimeout , blob , clob , allow , custom , false , validate , storage , TimeZoneUtil . toTimeZone ( timezone , null ) ) ) ; <END_BUG> } private static void setDatasourceEL ( ConfigImpl config , Map datasources , String datasourceName , String className , String server , String databasename , int port , String dsn , String user , String pass , int connectionLimit , int connectionTimeout , long metaCacheTimeout , boolean blob , boolean clob , int allow , boolean validate , boolean storage , String timezone , Struct custom ) { } private static void loadCustomTagsMappings ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static Object toKey ( Mapping m ) { } private static void loadPassword ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static void loadTag ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static void loadTempDirectory ( ConfigServerImpl configServer , ConfigImpl config , Document doc , boolean isReload ) throws ExpressionException , FunctionLibException , TagLibException { } private static void loadFilesystem ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) throws ExpressionException , FunctionLibException , TagLibException { } private static void createTagFiles ( Config config , Resource configDir , Resource dir ) { } private static void createFunctionFiles ( Config config , Resource configDir , Resource dir ) { } private static void copyContextFiles ( Resource src , Resource trg ) { } private static void loadUpdate ( ConfigServer configServer , Config config , Document doc ) { } private static void loadVideo ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) throws ApplicationException { } private static void loadSetting ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static void loadRemoteClient ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) throws IOException { } private static void loadSystem ( ConfigServerImpl configServer , ConfigImpl config , Document doc ) { } private static PrintWriter toPrintwriter ( ConfigImpl config , String streamtype , boolean iserror ) { } private static void loadCharset ( ConfigServer configServer , ConfigImpl config , Document doc ) { }

Fix:
datasources . put ( datasourceName . toLowerCase ( ) , new railo . runtime . db . DataSourceImpl ( datasourceName , className , server , dsn , databasename , port , user , pass , connectionLimit , connectionTimeout , metaCacheTimeout , blob , clob , allow , custom , false , validate , storage , ( StringUtil . isEmpty ( timezone , true ) ? null : TimeZoneUtil . toTimeZone ( timezone , null ) ) ) ) ;