Bootstrapping CpEntityManager, and giving compatibility with EntityManagerFactoryImpl.