if(!dir.exists())
dir.mkdirs();
for(File f: dir.listFiles()){
String sf = IndexFinderTerminology.TERM_SUFFIX;
if(f.getName().endsWith(sf)){
Terminology t;
try {
t = new IndexFinderTerminology(f.getName().substring(0,f.getName().length()-sf.length()));
terminologies.put(t.getName(),t);
} catch (UnsupportedOperationException e){
System.err.println("Corrupted termonology detected at "+f.getAbsolutePath()+". skipping ...");
} catch (IOException e) {
e.printStackTrace();
}