@Override
    public boolean equals(Object obj) {
        if (!(obj instanceof HopSpec)) {
            return false;
        }
        HopSpec rhs = (HopSpec)obj;
        if (!name.equals(rhs.name)) {
            return false;
        }
        if (!selector.equals(rhs.selector)) {
            return false;
        }
        if (!recipients.equals(rhs.recipients)) {
            return false;
        }
        return true;
    }
Capitalizes the given string by upper-casing its first letter.

@param str The string to capitalize.
@return The capitalized string.
messagebus/src/main/java/com/yahoo/messagebus/routing/HopSpec.java