stage.command = commandNode;
stage.holders = context.getHolders();
if (i > 0) {
String pipeName = "PIPE-" + stages[i - 1].stageName;
stages[i - 1].holders[Command.STD_OUT].setIO(
new CommandIOMarker(pipeName, CommandIO.DIRECTION_OUT), true);
stage.holders[Command.STD_IN].setIO(
new CommandIOMarker(pipeName, CommandIO.DIRECTION_IN), true);
}
stage.context = context;
stage.nestedPipeline = commandNode.buildPipeline(context);
context.evaluateRedirections(commandNode.getRedirects(), stage.holders);
}