Removed method findEntityWithNewEntityManager() as it makes no sense. The important thing is to clear the persistence context, not to create a new entity manager instance.