Java code generation tool automatically