add javaBackendHooks method to AbstractKModule + clean up BuiltinFunctio...

...n code

**do not review yet**
I don't know much about checkstyle but is there a better way to suppress the warning?