add sessionFactory to record for EntityIteratorWriter