code: private static int findParent(int packed_locale, final String script) {
      if (hasRegion(packed_locale)) {
        for (Map.Entry<String, Map<Integer, Integer>> entry : SCRIPT_PARENTS.entrySet()) {
          if (script.equals(entry.getKey())) {
            Map<Integer, Integer> map = entry.getValue();
            Integer lookup_result = map.get(packed_locale);
            if (lookup_result != null) {
              return lookup_result;
            }
            break;
          }
        }
        return dropRegion(packed_locale);
      }
      return PACKED_ROOT;
    }
docs: to represent the root locale