code refinements in JPAManager class