code: private void doGetLocales() throws PageException {
  	Struct sct = new StructImpl(StructImpl.TYPE_LINKED);
  	// Array arr=new ArrayImpl();
  	String strLocale = getString("locale", "english (united kingdom)");
  	Locale locale = LocaleFactory.getLocale(strLocale);
  	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
  	Map locales = LocaleFactory.getLocales();
  	Iterator it = locales.keySet().iterator();
  
  	String key;
  	Locale l;
  	while (it.hasNext()) {
  	    key = (String) it.next();
  	    l = (Locale) locales.get(key);
  	    sct.setEL(l.toString(), l.getDisplayName(locale));
  	    // arr.append(locale.getDisplayName());
  	}
  	// arr.sort("textnocase","asc");
      }
docs: @throws PageException