refactor the code
rm gen-java