choice.setOtherwise((OtherwiseDefinition) toNode);
} else {
// there may be a nested choice so we need to add it on its parent
ProcessorDefinition grandParent = choice.getParent();
if (grandParent != null) {
grandParent.addOutput(toNode);
} else {
Activator.getLogger().warning("No parent of " + choice + " so cannot add output " + toNode);
}
}
} else {