protected long getQuotaValueForResource(QuotaResource resource) {
    long quotaValue = -1;
    try {
      Quota quota = quotaSource.getQuota(resource, QuotaName.STORAGE_IN_GB);
      quotaValue = (long) quota.getQuotaValue() * BYTES_IN_GB;
    } catch (QuotaException quotaException) {
      logger.warn("Quota not found for resource id: {}, type: {}", resource.getResourceId(),
          resource.getQuotaResourceType());
    }
    return quotaValue;
  }
Return the storage quota value (in bytes) for given {@link QuotaResource}.
@param resource The {@link QuotaResource} to fetch quota value.
@return The storage quota value (in bytes)
ambry-quota/src/main/java/com/github/ambry/quota/storage/StorageQuotaEnforcer.java