Replaces hardcoded name of the class with static in EntityManager::create