@Override
    protected HttpResponse handlePUT(HttpRequest request) {
        final TenantName tenantName = Utils.getTenantNameFromSessionRequest(request);
        Utils.checkThatTenantExists(tenantRepository, tenantName);
        Tenant tenant = tenantRepository.getTenant(tenantName);
        TimeoutBudget timeoutBudget = getTimeoutBudget(request, DEFAULT_ACTIVATE_TIMEOUT);
        long sessionId = getSessionIdV2(request);
        ApplicationId applicationId = applicationRepository.activate(tenant, sessionId, timeoutBudget,
                                                                     shouldIgnoreSessionStaleFailure(request));
        ApplicationMetaData metaData = applicationRepository.getMetadataFromLocalSession(tenant, sessionId);
        return new SessionActiveResponse(metaData.getSlime(), request, applicationId, sessionId, zone);
    }
Handler that activates a session given by tenant and id (PUT).

@author vegardh
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/SessionActiveHandler.java