add gen java code