Generation of java code