try {
// We need transaction so all the replication are sent in batch.
// Don't do anything if there is already transaction context
// associated with this thread.
if (notSession && batchingManager.isBatchInProgress() == false) {
batchingManager.startBatch();
doTx = true;
}
session.processSessionReplication();
} catch (Exception ex) {