docs: private List getLocales() {
  
          ArrayList ret = new ArrayList();
  
          try {
              Iterator i = OpenCms.getLocaleManager().getAvailableLocales().iterator();
  
              // loop through all local's and build the entries
              while (i.hasNext()) {
                  Locale locale = (Locale)i.next();
                  String language = locale.getLanguage();
                  String displayLanguage = locale.getDisplayLanguage();
  
                  ret.add(new CmsSelectWidgetOption(language, false, displayLanguage));
              }
          } catch (Exception e) {
              // not necessary
          }
          return ret;
      }