File f = new File(name);
if(f.getParentFile() != null)
IndexFinderTerminology.setPersistenceDirectory(f.getParentFile());
term = new IndexFinderTerminology(f.getName());
} catch (IOException e) {
throw new TerminologyException("Could not load IndexFinder terminology "+name,e);
}
}
}catch(TerminologyException ex){
ex.printStackTrace();
}