refactoring and create new method to create java file in the PriorJIO services.