private static String toAddress(String connection) {
        if (connection.startsWith("tcp/")) {
            int pos = connection.indexOf(':');
            if (pos > 4) {
                return connection.substring(4, pos);
            }
        }
        return null;
    }
Searches the given connection spec for a hostname or IP address. If an address is not found, this method returns
null.

@param connection The connection spec to search.
@return The address, may be null.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/LocalServicePolicy.java