code: private E getBest(Locale... preferredLocales) {
      long bestGoodness = 0;
      Locale bestKey = null;
      for (Locale locale : preferredLocales) {
        for (Locale key : values.keySet()) {
          long goodness = computeGoodness(locale, key);
          if (goodness > bestGoodness)
            bestKey = key;
        }
      }
      if (bestKey != null)
        return exactGet(bestKey);
      return null;
    }
docs: Goes through the list of preferred wrappers, and returns the value stored the hashtable with
  the 'most good' matching key, or null if there are no matches.