public boolean hasRoute(String routeName) {
        for (RouteSpec route : routes) {
            if (route.getName().equals(routeName)) {
                return true;
            }
        }
        return false;
    }
Returns whether or not there is a named route spec contained in this.

@param routeName The hop name to check for.
@return True if the hop exists.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTableSpec.java