fixed warnings and errors related to scope of variables and methods, parameters should be final, method is not designed for extension,  Name constants must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.