return removedNode;
}
@Override
public void process(RouteInsertedChange c) {
Route route = c.getInsertedRoute();
OperationWrapperNode from = operationNodes.get(route.getFrom());
OperationActivityWrapper destination = route.getTo();
AbstractGraphNode to = null;
if (destination instanceof OperationWrapper) {
to = operationNodes.get(destination);
} else if (destination instanceof EmailWrapper) {
to = emailNodes.get(destination);
}
GraphEdge edge;
if (route.getSourceActivity() != null) {
edge = createScriptSourceEdge(route, from, (OperationWrapperNode) to);
} else {
edge = createOperationActivityEdge(route, from, to);
}
eventSupport.fireNodesConnected(edge);