renamed ObjectManager to EntityManager