EntityManager should not be accessed at the controller level