fixed warnings related to method 'contextInitialized' is not designed for extension
fixed warnings related to double checked locking is not thread safe in Java, fixed warnings and errors related to scope of variables, parameters should be final, method is not designed for extension
fixed warnings and errors related to scope of variables and methods, need bracers, parameters should be final, method is not designed for extension, localization messages, empty catch block, method ignores exceptional return value.