}
ContextAdapter ctx = new ContextAdapter(document.getElement());
List categoryList = new ArrayList();
for (Iterator it = ctx.iterate("category"); it.hasNext();) {
categoryList.add((String) it.next());
}
categories = (String[]) categoryList.toArray(new String[categoryList.size()]);
if (categories.length > 0) {
categoryText.setText(categories[0]);