public static Long getSessionIdV2(HttpRequest request) {
        try {
            return Long.parseLong(getRawSessionIdV2(request));
        } catch (NumberFormatException e) {
            throw createSessionException(request);
        }
    }
Gets session id (as a number) from request (v2). Input request must have a valid path.

@param request a request
@return a session id
configserver/src/main/java/com/yahoo/vespa/config/server/http/SessionHandler.java