} else if (label.equals(getLabel())) {
return 0;
} else if (parentContext != null) {
return parentContext.findLabel(label) + 1;
} else {
throw new LabelNotDefinedException("Could not find pipeline or sub-pipeline with label \"" + label
+ "\" in the pipeline invocation stack");
}
}