Generation of java files from templates