ArrayList<GlossaryItem> glossItems = gIM.getGlossaryItemListByVFSItem(glossaryFolder);
String description = "<dd><dt>" + glossaryMainTerm + "</dt>";
// FIXME: have a way not to loop over all items, but get by Term
boolean foundADescription = false;
for (Iterator<GlossaryItem> iterator = glossItems.iterator(); iterator.hasNext();) {
GlossaryItem glossaryItem = iterator.next();
if (glossaryItem.getGlossTerm().toLowerCase().equals(glossaryMainTerm.toLowerCase())) {
description += "<dl>" + glossaryItem.getGlossDef() + "</dl>";
foundADescription = true;
break;
}
}
description += "</dd>";