if (LOG.isTraceEnabled()) {
LOG.trace("Starting a transaction for batch number " + batchNo);
}
final AtomicInteger currentBatchSteps = new AtomicInteger(0);
NullItem result = executor.executeInTransaction(new TransactionCallback<NullItem>() {
@Override
public NullItem doInTransaction(GraphDatabaseService database) {
try {
while (iterator.hasNext() && currentBatchSteps.get() < batchSize) {
T next = iterator.next();