OperationActivityWrapper next = out.getTo();
AbstractGraphNode nextNode = null;
if (next instanceof OperationWrapper) {
nextNode = build((OperationWrapper) next);
} else if (next instanceof EmailWrapper) {
EmailWrapperNode emailNode = getEmailNodeFor((EmailWrapper) next);
emailNodes.put(emailNode.getDataObject(), emailNode);
nextNode = emailNode;
}
opNode.addOutgoingRoute(out, nextNode);
}
return opNode;