Clarified the instantiation of the entity manager.