move getEntityManager