public SessionId getSessionId() {
        if (requestId == null) return null;
        return new SessionId(requestId, getRanking().getProfile());
    }
Returns the session id of this query, or null if none is assigned
container-search/src/main/java/com/yahoo/search/Query.java