BatchManager batchManager = ctx.getBatchManager();
if (batchManager.isBatchActive()) {
currentBatch = "batch" + System.currentTimeMillis();
batchManager.holdbackActiveBatch(currentBatch);
}
batchManager.activateNewBatch();
return currentBatch;
}
protected void discardBatch(CommandContext ctx, String holdbackBatch) {
BatchManager batchManager = ctx.getBatchManager();