refactoring EntityGen.java genEntityWrapperFile and genEntityManagerFile to be modified