code: private static int[] findCodeFromLocale(ULocale locale) {
          int[] result = getCodesFromLocale(locale);
          if(result != null) {
              return result;
          }
          ULocale likely = ULocale.addLikelySubtags(locale);
          return getCodesFromLocale(likely);
      }
docs: Helper function to find the code from locale.
  @param locale The locale.