if (getLocale().getLanguage().equals(treeChoices[i].getLanguage())) {
setCurrentLocaleNode(languageTreeNode);
}
} else {
continue;
}
if (treeChoices[i].getCountry().length() != 0) {
// As a default, set the display language in the language of the locale itself
localeDataPair = new LocaleDataPair(treeChoices[i].getDisplayCountry(treeChoices[i]), new Locale(treeChoices[i].getLanguage(), treeChoices[i].getCountry()));
localeDataPair = new LocaleDataPair(treeChoices[i].getDisplayVariant(treeChoices[i]), new Locale(treeChoices[i].getLanguage(), treeChoices[i].getCountry(), treeChoices[i].getVariant()));