moved the implementation of the template methods into the EntityManagerImpl header