public static QuotaChargeCallback buildQuotaChargeCallback(RestRequest restRequest, QuotaManager quotaManager,
      boolean isQuotaEnforcedOnRequest) {
    if (!quotaManager.getQuotaConfig().bandwidthThrottlingFeatureEnabled) {
      return new PostProcessQuotaChargeCallback(quotaManager, restRequest, isQuotaEnforcedOnRequest);
    } else {
      return new PreProcessQuotaChargeCallback(quotaManager, restRequest);
    }
  }
Build {@link QuotaChargeCallback} to handle quota compliance of requests.
@param restRequest {@link RestRequest} for which quota is being charged.
@param quotaManager {@link QuotaManager} object responsible for charging the quota.
@param isQuotaEnforcedOnRequest flag indicating if request quota should be enforced after charging. Requests like
                                updatettl, delete etc are charged, but quota is not enforced on them.
@return QuotaChargeCallback object.
ambry-quota/src/main/java/com/github/ambry/quota/QuotaUtils.java