@Override
    public String toString() {
        StringBuilder ret = new StringBuilder();
        toConfig(ret, "");
        return ret.toString();
    }
Appends the content of this to the given config string builder.

@param cfg    The config to add to.
@param prefix The prefix to use for each add.
messagebus/src/main/java/com/yahoo/messagebus/routing/RouteSpec.java