}
private GraphNodeUi2D createPipelineActivityNodeUi(Graph2D graph, PipelineActivityNode node) {
// TODO: Rewrite this using a PipelineActivityNode factory?
if (node instanceof ScriptActivityNode) {
return new ScriptNodeUi2D(graph, (ScriptActivityNode) node);
} else if (node instanceof SourceActivityNode) {
return new SourceNodeUi2D(graph, (SourceActivityNode) node);
} else if (node instanceof TargetActivityNode) {
return new TargetNodeUi2D(graph, (TargetActivityNode) node);
} else if (node instanceof TransformationActivityNode) {