public String[] getDBLanguages() { Set<String> tempList = new HashSet<String>(); for (SupportDBUrlType type : SupportDBUrlType.values()) { String language = type.getLanguage(); if (supportDBUrlMap.containsKey(type.getDBKey())) { tempList.add(language); } } String[] dbLanguages = tempList.toArray(new String[tempList.size()]); Arrays.sort(dbLanguages); return dbLanguages; }