public DestinationReference(TransitionImpl transition, String destinationName) {
this.transition = transition;
this.destinationName = destinationName;
}
public void resolve() {
NodeImpl destination = (NodeImpl) processDefinition.findNode(destinationName);
if (destination==null) {
throw new PvmException("couldn't find destination node "+destinationName+" for "+transition);
}
destination.addIncomingTransition(transition);
transition.setDestination(destination);
}