public DocumentProtocol putRoutingPolicyFactory(String name, RoutingPolicyFactory factory) {
        routingPolicyRepository.putFactory(name, factory);
        return this;
    }
Adds a new routable factory to this protocol. This method is thread-safe, and may be invoked on a protocol object
that is already in use by a message bus instance. Notice that the name you supply for a factory is the
case-sensitive name that will be referenced by routes.

@param name    the name of the factory to add
@param factory the factory to add
@return this, to allow chaining
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/DocumentProtocol.java