Made entityManager private.