@Override
public Object[] getConnectedTo(Object entity) {
if (entity instanceof GraphableNodeConnected) {
GraphableNodeConnected gn = (GraphableNodeConnected) entity;
return gn.getGraphConnectedTo().toArray();
} else if (entity instanceof RouteSupport) {
RouteSupport route = (RouteSupport) entity;
return route.getRootNodes().toArray();
} else if (entity instanceof AbstractNode) {
AbstractNode node = (AbstractNode) entity;