class TenantHandler extends HttpHandler {

    @Override
    protected HttpResponse handleDELETE(HttpRequest request) {
        final TenantName tenantName = getTenantNameFromRequest(request);
        Utils.checkThatTenantExists(tenantRepository, tenantName);
        applicationRepository.deleteTenant(tenantName);
        return new TenantDeleteResponse(tenantName);
    }

    @Inject public  TenantHandler(Context ctx, ApplicationRepository applicationRepository);

}