refactor java src