};
}
private Thesaurus createThesaurus(File directory, String string) throws Exception {
File thesaurusBlahFile = new File(directory, string+".rdf");
GenericXmlApplicationContext appContext = new GenericXmlApplicationContext();
appContext.getBeanFactory().registerSingleton("IsoLangMapper", isoLangMapper);
Thesaurus thes = new Thesaurus(appContext, string+".rdf", Geonet.CodeList.EXTERNAL, string, thesaurusBlahFile, "http://"+string+".com");
setRepository(thes);
if(!thesaurusBlahFile.exists() || thesaurusBlahFile.length() == 0) {
populateThesaurus(thes, smallWords, "http://"+string+".com#", string+"Val", string+"Note", languages);