What is the difference when setup the TaskSessionSpringFactoryImpl using the following options?
(Option 1) taskSessionFactory.setEntityManager(taskSharedEntityManagerBean().getObject());
(Option 2) taskSessionFactory.setEntityManagerFactory(taskEmf());
What is the points in each case?