List<AbstractNode> children = model.getChildren();
int counter = 0;
for (AbstractNode node : children) {
if (node instanceof RouteSupport) {
final RouteSupport route = (RouteSupport) node;
ActionContributionItem item = new ActionContributionItem(new SwitchRouteAction(route, counter));
items.add(item);
counter++;
}
}
}