for (final Step branchstep : unionStep.getTraversals()[i].getSteps()) {
TraversalHelper.insertAfterStep(branchstep, currentStep, traversal);
currentStep = branchstep;
if (c++ == 0) currentStep.setLabel(unionBranchStart);
}
final BranchStep breakStep = new BranchStep(traversal);
breakStep.setFunctions(new BranchStep.GoToLabel(endLabel));
TraversalHelper.insertAfterStep(breakStep, currentStep, traversal);
currentStep = breakStep;
}
final IdentityStep finalStep = new IdentityStep(traversal);