5556575859606162636465
ThesaurusManager tm = gc.getBean(ThesaurusManager.class); Thesaurus t = tm.getThesaurusByName(fname); if (t != null) { t.clear(); } else { // Thesaurus does not exist throw new Exception("Thesaurus not found"); }