return activateBranch(unit, NONE);
}
public QName activateBranch(InteractionUnit unit, String suffix) {
BranchActivation activation = new BranchActivation();
unit.accept(activation);
for(QName unitId : activation.getActiveItems().values())
{
// trigger activation procedure
// TODO: Improve passing of relative nav information
QName target = NONE.equals(suffix) ? unitId :
new QName(unitId.getNamespaceURI(), unitId.getLocalPart()+"#"+suffix);
stateCoordination.activateUnit(target);
}
return activation.getActiveItems().get(activation.getActiveItems().size()-1);
}