Set lkeys = locdescs.keySet();
String[] languageKeys = new String[lkeys.size()];
String[] languageValues = new String[lkeys.size()];
// fetch languages
int p = 0;
I18nManager i18n = I18nManager.getInstance();
for (Iterator iter = lkeys.iterator(); iter.hasNext();) {
String key = (String) iter.next();
languageKeys[p] = key;
languageValues[p] = locdescs.get(key);
p++;