private HttpResponse getTenant(RestApi.RequestContext context) {
        TenantName name = TenantName.from(context.pathParameters().getStringOrThrow("tenant"));
        if ( ! tenantRepository.checkThatTenantExists(name))
            throw new RestApiException.NotFound("Tenant '" + name + "' was not found.");

        return new TenantGetResponse(name);
    }
Handler to create, get and delete a tenant, and listing of tenants.

@author jonmv
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/TenantHandler.java