if(toState == null)
toState = StateMachine.NONE;
// when no state machine (empty agents) nothing to do...
StateMachine stateMachine = entryDelta.getStateMachine();
if(stateMachine == null)
return transition;
int distance = stateMachine.getDistance(fromState, toState);
@SuppressWarnings("unchecked")
Collection<Map<String,String>> path =
(Collection<Map<String,String>>) entryDelta.getStateMachine().findShortestPath(fromState,
toState);