new XhtmlTemplate(objectAdapter.titleString() + "." + collectionId, getServletRequest());
xhtml.appendToBody(asDivIsisSession());
xhtml.appendToBody(resourcesDiv());
// title & Oid
Element div = asDivTableObjectDetails(objectAdapter);
xhtml.appendToBody(div);
// collection name & contents
final OneToManyAssociation collection = (OneToManyAssociation) association;
div = xhtmlRenderer.div_p(collectionId, HtmlClass.COLLECTION);
final Element ul = xhtmlRenderer.ul(HtmlClass.COLLECTION);
div.appendChild(ul);
final ObjectAdapter collectionObj = collection.get(objectAdapter);
final CollectionFacet facet = CollectionFacetUtils.getCollectionFacetFromSpec(collectionObj);
for (final Iterator<ObjectAdapter> iter = facet.iterator(collectionObj); iter.hasNext();) {
final ObjectAdapter associatedNO = iter.next();
ul.appendChild(toLiAHref(associatedNO));
}
xhtml.appendToBody(div);
return xhtml.toXML();
}