remove deprecated getEntityManager