Java codegen -- ready for testing