VisitorControlHandler.CompletionCode toCompletionCode() {
            return switch (state) {
                case COMPLETED -> VisitorControlHandler.CompletionCode.SUCCESS;
                case ABORTED -> VisitorControlHandler.CompletionCode.ABORTED;
                case FAILED -> VisitorControlHandler.CompletionCode.FAILURE;
                case TIMED_OUT -> VisitorControlHandler.CompletionCode.TIMEOUT;
                default -> throw new IllegalStateException("Current state did not have a valid value: " + state);
            };
        }
Get connection spec that can be used by other clients to send
messages to this Receiver.
@return connection spec
documentapi/src/main/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSession.java