Batch batch = batchManager.getActiveBatch();
List<BatchedCommand> currentBatch = batch.getCommands();
if(currentBatch.isEmpty()) {
ctx.printLine("The batch is empty.");
batchManager.discardActiveBatch();
return;
}
ModelNode composite = new ModelNode();
composite.get("operation").set("composite");