Added support for Java code generation of curried functions