refactoring Entity Manager Factory method bean