List<FlowChange> changes = rebuildLinksFrom(
op, RouteType.SCRIPTED, op.getPipeline().getScriptedOperations(entityLookup).getOperations());
Set<Route> newScriptSourceRoutes = Sets.newHashSet();
OperationPipeline pipeline = op.getPipeline();
for (ScriptedLink link : pipeline.getScriptedOperationLinks(entityLookup)) {
Operation linkedOp = (Operation) link.getMainObject();
for (PipelineActivity activity : pipeline.getActivitiesFor(link.getDependantObject())) {
Route route = Route.fromScriptSource(activity, op, operations.get(linkedOp));
newScriptSourceRoutes.add(route);
op.addOutgoingRoute(route);
}