public static TenantName getTenantNameFromRequest(HttpRequest request) {
        BindingMatch<?> bm = Utils.getBindingMatch(request, "http://*/application/v2/tenant/*/prepareandactivate*"); // Gosh, these glob rules aren't good ...
        return TenantName.from(bm.group(2));
    }
* The implementation of the /application/v2 API.


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