private void registerV8Factories() {
        var version8 = new VersionSpecification(8, 310); // Must be same as in C++ impl
        var from8 = List.of(version8);

        putRoutableFactory(MESSAGE_CREATEVISITOR,   RoutableFactories80.createCreateVisitorMessageFactory(),   from8);
        putRoutableFactory(MESSAGE_DESTROYVISITOR,  RoutableFactories80.createDestroyVisitorMessageFactory(),  from8);
        putRoutableFactory(MESSAGE_DOCUMENTLIST,    RoutableFactories80.createDocumentListMessageFactory(),    from8);
        putRoutableFactory(MESSAGE_EMPTYBUCKETS,    RoutableFactories80.createEmptyBucketsMessageFactory(),    from8);
        putRoutableFactory(MESSAGE_GETBUCKETLIST,   RoutableFactories80.createGetBucketListMessageFactory(),   from8);
        putRoutableFactory(MESSAGE_GETBUCKETSTATE,  RoutableFactories80.createGetBucketStateMessageFactory(),  from8);
        putRoutableFactory(MESSAGE_GETDOCUMENT,     RoutableFactories80.createGetDocumentMessageFactory(),     from8);
        putRoutableFactory(MESSAGE_MAPVISITOR,      RoutableFactories80.createMapVisitorMessageFactory(),      from8);
        putRoutableFactory(MESSAGE_PUTDOCUMENT,     RoutableFactories80.createPutDocumentMessageFactory(),     from8);
        putRoutableFactory(MESSAGE_QUERYRESULT,     RoutableFactories80.createQueryResultMessageFactory(),     from8);
        putRoutableFactory(MESSAGE_REMOVEDOCUMENT,  RoutableFactories80.createRemoveDocumentMessageFactory(),  from8);
        putRoutableFactory(MESSAGE_REMOVELOCATION,  RoutableFactories80.createRemoveLocationMessageFactory(),  from8);
        putRoutableFactory(MESSAGE_STATBUCKET,      RoutableFactories80.createStatBucketMessageFactory(),      from8);
        putRoutableFactory(MESSAGE_UPDATEDOCUMENT,  RoutableFactories80.createUpdateDocumentMessageFactory(),  from8);
        putRoutableFactory(MESSAGE_VISITORINFO,     RoutableFactories80.createVisitorInfoMessageFactory(),     from8);
        putRoutableFactory(REPLY_CREATEVISITOR,     RoutableFactories80.createCreateVisitorReplyFactory(),     from8);
        putRoutableFactory(REPLY_DESTROYVISITOR,    RoutableFactories80.createDestroyVisitorReplyFactory(),    from8);
        putRoutableFactory(REPLY_DOCUMENTIGNORED,   RoutableFactories80.createDocumentIgnoredReplyFactory(),   from8);
        putRoutableFactory(REPLY_DOCUMENTLIST,      RoutableFactories80.createDocumentListReplyFactory(),      from8);
        putRoutableFactory(REPLY_EMPTYBUCKETS,      RoutableFactories80.createEmptyBucketsReplyFactory(),      from8);
        putRoutableFactory(REPLY_GETBUCKETLIST,     RoutableFactories80.createGetBucketListReplyFactory(),     from8);
        putRoutableFactory(REPLY_GETBUCKETSTATE,    RoutableFactories80.createGetBucketStateReplyFactory(),    from8);
        putRoutableFactory(REPLY_GETDOCUMENT,       RoutableFactories80.createGetDocumentReplyFactory(),       from8);
        putRoutableFactory(REPLY_MAPVISITOR,        RoutableFactories80.createMapVisitorReplyFactory(),        from8);
        putRoutableFactory(REPLY_PUTDOCUMENT,       RoutableFactories80.createPutDocumentReplyFactory(),       from8);
        putRoutableFactory(REPLY_QUERYRESULT,       RoutableFactories80.createQueryResultReplyFactory(),       from8);
        putRoutableFactory(REPLY_REMOVEDOCUMENT,    RoutableFactories80.createRemoveDocumentReplyFactory(),    from8);
        putRoutableFactory(REPLY_REMOVELOCATION,    RoutableFactories80.createRemoveLocationReplyFactory(),    from8);
        putRoutableFactory(REPLY_STATBUCKET,        RoutableFactories80.createStatBucketReplyFactory(),        from8);
        putRoutableFactory(REPLY_UPDATEDOCUMENT,    RoutableFactories80.createUpdateDocumentReplyFactory(),    from8);
        putRoutableFactory(REPLY_VISITORINFO,       RoutableFactories80.createVisitorInfoReplyFactory(),       from8);
        putRoutableFactory(REPLY_WRONGDISTRIBUTION, RoutableFactories80.createWrongDistributionReplyFactory(), from8);
    }
Get priority enum instance by its name.

@param name name of priority.
@return priority enum instance, given that <code>name</code> is valid
@throws IllegalArgumentException if priority name is unknown
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/DocumentProtocol.java