} else if (entity instanceof AbstractNode) {
AbstractNode node = (AbstractNode) entity;
node.getOutputs().toArray();
}
else if (entity instanceof ConnectedNode) {
ConnectedNode node = (ConnectedNode) entity;
return node.getConnectedTo().toArray();
} else if (entity instanceof Node) {
Node aNode = (Node) entity;
return aNode.getChildren();
}
return EMPTY;