if (anno != null) {
FilteredSegmentList items = anno.getItemsList();
for (int i = 0; i < items.size(); i++) {
AnnotationItem item = (AnnotationItem)items.get(i);
if (item instanceof DocumentationElement) {
DocumentationElement doc = (DocumentationElement)item;
List contents = doc.getContent();
if (contents != null) {
for (Iterator iter = contents.iterator(); iter.hasNext();) {
Node node = (Node)iter.next();
DOMSource source = new DOMSource(node);
StreamResult result = new StreamResult(writer);