public SessionId getSessionId(String serverId) {
        if (requestId == null)
            requestId = UniqueRequestId.next(serverId);
        return new SessionId(requestId, getRanking().getProfile());
    }
Returns the session id of this query, and creates and assigns it if not already present
container-search/src/main/java/com/yahoo/search/Query.java