@Override
    protected HttpResponse handleGET(HttpRequest request) {
        Tenant tenant = getExistingTenant(request);
        long sessionId = getSessionIdV2(request);
        applicationRepository.validateThatSessionIsNotActive(tenant, sessionId);
        applicationRepository.validateThatSessionIsPrepared(tenant, sessionId);
        return new SessionPrepareResponse(tenant.getName(), request, sessionId);
    }
A handler that prepares a session given by an id in the request. v2 of application API

@author hmusum
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/SessionPrepareHandler.java