private void checkSupported(QuotaName quotaName, QuotaResource quotaResource) throws QuotaException {
    if (!SUPPORTED_QUOTA_NAMES.contains(quotaName)) {
      throw new QuotaException("Unsupported quota name: " + quotaName.name(), false);
    }
    if (!SUPPORTED_QUOTA_RESOURCE_TYPES.contains(quotaResource.getQuotaResourceType())) {
      throw new QuotaException("Unsupported quota resource type: " + quotaResource.getQuotaResourceType(), false);
    }
  }
Checks if the specified {@link QuotaName} and {@link QuotaResourceType} are handled by this quota source.
@param quotaName {@link QuotaName} object.
@param quotaResource {@link QuotaResource} object.
@throws QuotaException in case of any exception.
ambry-quota/src/main/java/com/github/ambry/quota/capacityunit/AmbryCUQuotaSource.java