\r
import java.util.UUID;\r
\r
+import org.apache.commons.lang.StringUtils;\r
import org.apache.log4j.Logger;\r
\r
import eu.etaxonomy.cdm.common.CdmUtils;\r
\r
@Override\r
public NamedArea getNamedAreaByKey(String key) throws UndefinedTransformerMethodException {\r
- if (CdmUtils.isEmpty(key)){return null;\r
+ if (StringUtils.isBlank(key)){return null;\r
}else if (key.equalsIgnoreCase("DRC")){return TdwgArea.getAreaByTdwgAbbreviation("CON-OO");\r
- }else if (key.matches("C[ôo]t[eéê] d'Ivoire")){return TdwgArea.getAreaByTdwgAbbreviation("IVO-OO");\r
+ }else if (key.matches("C[�o]t[e��] d'Ivoire")){return TdwgArea.getAreaByTdwgAbbreviation("IVO-OO");\r
}else if (key.equalsIgnoreCase("Gambia")){return TdwgArea.getAreaByTdwgAbbreviation("GAM-OO");\r
}else if (key.matches("Sout?h Af?rica")){return WaterbodyOrCountry.getWaterbodyOrCountryByLabel("South Africa, Republic of");\r
}else if (key.matches("Equ[ai]torial? Guinea")){return TdwgArea.getAreaByTdwgAbbreviation("EQG-OO");\r
}else if (key.equalsIgnoreCase("Spanish Moroco")){return TdwgArea.getAreaByTdwgAbbreviation("MOR-SP");\r
}else if (key.matches("Co?[mn]o[rl][oe] [iI]sl?\\.")|| key.equalsIgnoreCase("Comores")){return TdwgArea.getAreaByTdwgAbbreviation("COM-CO");\r
- }else if (key.matches("(La )?R[ée]un?ion\\.?")){return TdwgArea.getAreaByTdwgAbbreviation("REU-OO");\r
+ }else if (key.matches("(La )?R[\u00c9]un?ion\\.?")){return TdwgArea.getAreaByTdwgAbbreviation("REU-OO");\r
}else if (key.equalsIgnoreCase("Lybia")){return TdwgArea.getAreaByTdwgAbbreviation("LBY-OO");\r
}else if (key.matches("St He[lr]ena")){return TdwgArea.getAreaByTdwgAbbreviation("STH-OO");\r
}else if (key.equalsIgnoreCase("Amsterdam Isl.")){return TdwgArea.getAreaByTdwgAbbreviation("ASP-OO");\r
}else if (key.equalsIgnoreCase("Crozet isl.")){return TdwgArea.getAreaByTdwgAbbreviation("CRZ-OO");\r
- }else if (key.matches("Pr?[ií]nci[pl]e")){return TdwgArea.getAreaByTdwgAbbreviation("GGI-PR");\r
+ }else if (key.matches("Pr?[i�]nci[pl]e")){return TdwgArea.getAreaByTdwgAbbreviation("GGI-PR");\r
}else if (key.equalsIgnoreCase("Marion Isl.") || key.matches("Prince Ed[uw]ard Isl.") ){return TdwgArea.getAreaByTdwgAbbreviation("MPE-OO");\r
}else if (key.matches("Tan?z?an(ia|ai)")){return TdwgArea.getAreaByTdwgAbbreviation("TAN-OO");\r
}else if (key.matches("Cana[rt]y [iI]sl.")){return TdwgArea.getAreaByTdwgAbbreviation("CNY-OO");\r
}else if (key.equalsIgnoreCase("Azores")){return TdwgArea.getAreaByTdwgAbbreviation("AZO-OO");\r
}else if (key.matches("Rodri[gq]ue[sz]( Isl?(and)?\\.?)?")){return TdwgArea.getAreaByTdwgAbbreviation("ROD-OO");\r
}else if (key.equalsIgnoreCase("Ascension Island")){return TdwgArea.getAreaByTdwgAbbreviation("ASC-OO");\r
- }else if (key.matches("S[aâ]o Tom[ée]")){return TdwgArea.getAreaByTdwgAbbreviation("GGI-ST");\r
+ }else if (key.matches("S[a�]o Tom[\u00c9]")){return TdwgArea.getAreaByTdwgAbbreviation("GGI-ST");\r
}else if (key.matches("Marquesas Is.")){return TdwgArea.getAreaByTdwgAbbreviation("MRQ-OO");\r
}else if (key.matches("Equador")){return TdwgArea.getAreaByTdwgAbbreviation("ECU-OO");\r
}else if (key.matches("Norfolk Isl.")){return TdwgArea.getAreaByTdwgAbbreviation("NFK");\r
if (CdmUtils.isEmpty(key)){return null;\r
//Teilstaat des Unionsstaates Tansania\r
}else if (key.equalsIgnoreCase("Zanzibar")){return uuidZanzibar;\r
- //Annobón (port. Ano Bom) ist eine Insel im Golf von Guinea und gleichzeitig eine der sieben Provinzen Äquatorialguineas mit der Hauptstadt San Antonio de Palé.\r
+ //Annob�n (port. Ano Bom) ist eine Insel im Golf von Guinea und gleichzeitig eine der sieben Provinzen �quatorialguineas mit der Hauptstadt San Antonio de Pal�.\r
}else if (key.matches("Anno?[bn]on")){return uuidAnnobon;\r
- //Diego Garcia ist nach der Landfläche das größte Atoll des Chagos-Archipels,\r
+ //Diego Garcia ist nach der Landfl�che das gr��te Atoll des Chagos-Archipels,\r
}else if (key.equalsIgnoreCase("Diego Garcia")){return uuidDiegoGarcia;\r
- //Pemba ist die zweitgrößte Insel des ostafrikanischen Sansibar-Archipels. Gemeinsam mit der 50 km südlich gelegenen Insel Unguja und zahlreichen kleinen Nebeninseln bildet Pemba den halbautonomen Teilstaat \84Sansibar\93 in Tansania.\r
+ //Pemba ist die zweitgr��te Insel des ostafrikanischen Sansibar-Archipels. Gemeinsam mit der 50 km s�dlich gelegenen Insel Unguja und zahlreichen kleinen Nebeninseln bildet Pemba den halbautonomen Teilstaat �Sansibar� in Tansania.\r
}else if (key.matches("Pemba( Isl.)?")){return uuidPemba;\r
- //Santo Antão (port. für Heiliger Antonius) ist mit 779 km² die zweitgrößte der Kapverdischen Inseln im Atlantik. \r
- }else if (key.matches("S(an)?(to?)?\\.? Ant[ãa]o") ){return uuidStoAntao;\r
- //São Vicente ist eine der kleineren Kapverdischen Inseln im Atlantik\r
- }else if (key.matches("S(ão)?\\.? Vicente")){return uuidSaoVicente;\r
- //São Nicolau (dt.: \84Sankt Nikolaus\93) ist eine der kleineren (388 km²) und gebirgigen Kapverdischen Inseln im Norden des Archipels.\r
- }else if (key.matches("S(\\.|ão) Nicolau")){return uuidSaoNicolau;\r
+ //Santo Ant�o (port. f�r Heiliger Antonius) ist mit 779 km� die zweitgr��te der Kapverdischen Inseln im Atlantik. \r
+ }else if (key.matches("S(an)?(to?)?\\.? Ant[�a]o") ){return uuidStoAntao;\r
+ //S�o Vicente ist eine der kleineren Kapverdischen Inseln im Atlantik\r
+ }else if (key.matches("S(�o)?\\.? Vicente")){return uuidSaoVicente;\r
+ //S�o Nicolau (dt.: �Sankt Nikolaus�) ist eine der kleineren (388 km�) und gebirgigen Kapverdischen Inseln im Norden des Archipels.\r
+ }else if (key.matches("S(\\.|�o) Nicolau")){return uuidSaoNicolau;\r
//Fogo - Kap Verde\r
}else if (key.equalsIgnoreCase("Fogo")){return uuidFogo;\r
//Brava ist die kleinste der bewohnten Kapverdischen Inseln im Atlantik.\r
}else if (key.matches("Br[ao]v[ao]")){return uuidBrava;\r
//Grande Comore - Comores\r
}else if (key.matches("Grande Comor[eo]")){return uuidGrandeComore;\r
- //Gough ist eine hohe vulkanische Insel im Atlantischen Ozean, die zur Inselgruppe Tristan da Cunha gehört.\r
+ //Gough ist eine hohe vulkanische Insel im Atlantischen Ozean, die zur Inselgruppe Tristan da Cunha geh�rt.\r
}else if (key.matches("Gough Isl(\\.|and)?")){return uuidGough;\r
- //Middle Island ist eine Insel im Südatlantik, gelegen zwischen Nightingale Island und Stoltenhoff Island. Sie ist Teil der Inselgruppe Tristan da Cunha und gehört somit zum Britischen Überseegebiet St. Helena.\r
+ //Middle Island ist eine Insel im S�datlantik, gelegen zwischen Nightingale Island und Stoltenhoff Island. Sie ist Teil der Inselgruppe Tristan da Cunha und geh�rt somit zum Britischen �berseegebiet St. Helena.\r
}else if (key.matches("Middle Isl(\\.|and)?")){return uuidMiddleIslandTristanDaCunha;\r
- //Die Île aux Cerfs (wörtlich übersetzt \84Hirscheninsel\93) ist eine kleine Insel östlich von Mauritius im Indischen Ozean.\r
+ //Die �le aux Cerfs (w�rtlich �bersetzt �Hirscheninsel�) ist eine kleine Insel �stlich von Mauritius im Indischen Ozean.\r
}else if (key.equalsIgnoreCase("Ile aux Cerfs")){return uuidCerfs;\r
//Sokotra ist eine Insel im nordwestlichen Indischen Ozean.\r
}else if (key.equalsIgnoreCase("Soqotra")){return uuidSoqotra;\r
}else if (key.matches("(La )?Palma")){return uuidLaPalma;\r
//Flores\r
}else if (key.matches("Flores")){return uuidFlores;\r
- //Faial ist eine Gemeinde an der Nordküste Madeiras im Kreis Santan\r
+ //Faial ist eine Gemeinde an der Nordk�ste Madeiras im Kreis Santan\r
}else if (key.equalsIgnoreCase("Faial")){return uuidFaial;\r
//Anjouan (komorisch Ndzouani) ist eine der vier Inseln der Komoren.\r
}else if (key.equalsIgnoreCase("Anjouan")){return uuidAnjouan;\r
- //Silhouette ist eine Insel der Seychellen in der Inselgruppe um Mahé.\r
+ //Silhouette ist eine Insel der Seychellen in der Inselgruppe um Mah�.\r
}else if (key.matches("Silhouette( Isl?(and)?\\.)?")){return uuidSilhouette;\r
//Long Island : Seychellen (es gibt auch andere Long Islands)\r
}else if (key.matches("Long Island")){return uuidLongIslandSeychelles;\r
- //Inaccessible Islands sind eine Gruppe kleiner, unbewohnter Inseln im Archipel der Südlichen Orkneyinseln im Südpolarmeer.\r
+ //Inaccessible Islands sind eine Gruppe kleiner, unbewohnter Inseln im Archipel der S�dlichen Orkneyinseln im S�dpolarmeer.\r
}else if (key.matches("Inaccessibl[ea] Isl(and)?\\.?")){return uuidInaccessible;\r
- //Boa Vista (dt.: \84Schöner Anblick\93), auch Boavista geschrieben, ist die drittgrößte der Kapverdischen Inseln im Zentralatlantik.\r
+ //Boa Vista (dt.: �Sch�ner Anblick�), auch Boavista geschrieben, ist die drittgr��te der Kapverdischen Inseln im Zentralatlantik.\r
}else if (key.equalsIgnoreCase("Boavista")){return uuidBoavista;\r
//Maio ist eine der neun bewohnten Kapverdischen Inseln im Atlantik.\r
}else if (key.equalsIgnoreCase("Maio")){return uuidMaio;\r
}else if (key.equalsIgnoreCase("Sta. Luzia")){return uuidStLuzia;\r
//Nightingale Islands\r
}else if (key.matches("Nightingale Isl(and)?\\.?")){return uuidNightingaleIs;\r
- //Mohély ??\r
- }else if (key.matches("Moh[ée]ll?[yi]")){return uuidMohely;\r
- //Santa Maria ist die geologisch älteste Insel der Azoren im Atlantischen Ozean\r
+ //Moh�ly ??\r
+ }else if (key.matches("Moh[�e]ll?[yi]")){return uuidMohely;\r
+ //Santa Maria ist die geologisch �lteste Insel der Azoren im Atlantischen Ozean\r
}else if (key.matches("Santa Maria")){return uuidSantaMaria;\r
- //São Miguel ist die größte Insel der Azoren. \r
- }else if (key.matches("São Miguel")){return uuidSaoMiguel;\r
- //Terceira gehört zur Zentralgruppe der Azoren.\r
+ //S�o Miguel ist die gr��te Insel der Azoren. \r
+ }else if (key.matches("S�o Miguel")){return uuidSaoMiguel;\r
+ //Terceira geh�rt zur Zentralgruppe der Azoren.\r
}else if (key.matches("Terceira")){return uuidTerceira;\r
//Desertas - Madeira\r
}else if (key.matches("Desertas")){return uuidDesertas;\r
//Porto Santo - Madeira\r
}else if (key.matches("Porto Santo")){return uuidPortoSanto;\r
- //Mahé - Seychelles\r
- }else if (key.matches("Mah[ée]")){return uuidMahe;\r
+ //Mah� - Seychelles\r
+ }else if (key.matches("Mah[�e]")){return uuidMahe;\r
//Parslin - Seychelles\r
}else if (key.matches("Parslin")){return uuidParslin;\r
- //Stoltenhoff Island ist eine unbewohnte Insel im Südatlantik. Stoltenhoff gehört, wie die gesamte Inselgruppe Tristan da Cunha, zum Britischen Überseegebiet St. Helena.\r
+ //Stoltenhoff Island ist eine unbewohnte Insel im S�datlantik. Stoltenhoff geh�rt, wie die gesamte Inselgruppe Tristan da Cunha, zum Britischen �berseegebiet St. Helena.\r
}else if (key.matches("Stoltenhoff Isl(and)?\\.?")){return uuidStoltenhoff;\r
//Comoro Is.??\r
}else if (key.matches("Omoro Isl.")){return uuidOmoroIs;\r
- //Moorea ältere Namen Aimeho oder Eimeo (Cook), Santo Domingo (Boenechea) und York Island (Wallis), ist eine Insel im Süd-Pazifik, die politisch zu Französisch-Polynesien gehört.\r
+ //Moorea �ltere Namen Aimeho oder Eimeo (Cook), Santo Domingo (Boenechea) und York Island (Wallis), ist eine Insel im S�d-Pazifik, die politisch zu Franz�sisch-Polynesien geh�rt.\r
}else if (key.matches("Moorea")){return uuidMoorea;\r
\r
}else{\r