entitymanager is now passed to layer
renamed mObjectManager to mEntityManager