public static RequestHandler getRequestHandler(TenantRepository tenantRepository, TenantRequest request) {
        Tenant tenant = tenantRepository.getTenant(request.getApplicationId().tenant());
        if (tenant==null) throw new NotFoundException("No such tenant: "+request.getApplicationId().tenant());
        return tenant.getRequestHandler();
    }
Produces the binding match for the request. If it's not available on the jDisc request, create one for
testing using the long and short app id URL patterns given.
@param req an {@link com.yahoo.container.jdisc.HttpRequest}
@param patterns A list of patterns that should be matched if no match on binding.
@return match
configserver/src/main/java/com/yahoo/vespa/config/server/http/v2/request/HttpConfigRequests.java