working on java source code generation, not done yet