refactoring java code
refactoring java code