enhanced Java code generation