// FIXME: This doesn't seem terribly efficient...
while (! (step instanceof XPipeline)) {
step = step.getParent();
}
DeclareStep decl = step.getDeclareStep();
try {
decl = decl.getStepDeclaration(stepType);
} catch (XProcException e) {
decl = null;
}
if (decl != null) {
if (decl.isAtomic()) {
value = runtime.getConfiguration().isStepAvailable(decl.getDeclaredType());
} else {
value = true;
}
}