add a method, clear, to clear the EntityManager.