Removed getEntityManager