@Override
    public HttpResponse handleGET(HttpRequest request) {
        String hostname = getBindingMatch(request).group(2);
        ApplicationId applicationId = applicationRepository.getApplicationIdForHostname(hostname);
        return (applicationId == null)
                ? createError(hostname)
                : new HostResponse(Response.Status.OK, applicationId, applicationRepository.zone());
    }
Handler for getting tenant and application for a given hostname.

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