public boolean hasHop(String hopName) {
        for (HopSpec hop : hops) {
            if (hop.getName().equals(hopName)) {
                return true;
            }
        }
        return false;
    }
Returns whether or not there is a named hop spec contained in this.

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