removed unused variables and dead code
RunTimeException vs. RuntimeException
fixed Exception use statements
fixed method visibility keyword order
fixed field visibility keyword order
Merge pull request #5847 from craue/code-cleanup-2

code cleanup