code: public synchronized long getByteLimit(final String metric) {
      if (metric == null || metric.isEmpty()) {
        return default_byte_limit;
      }
      for (final QueryLimitOverrideItem item : overrides.values()) {
        if (item.matches(metric)) {
          return item.getByteLimit();
        }
      }
      return default_byte_limit;
    }
docs: Iterates over the list of overrides and return the first that matches or
  the default if no match is found.
  NOTE: The set of expressions is not sorted so if more than one regex
  matches the string, the result is indeterministic.
  If the metric is null or empty, the default limit is returned.
  @param metric The string to match
  @return The matched or default limit.