final XhtmlTemplate xhtml = new XhtmlTemplate("Specifications", getServletRequest());
xhtml.appendToBody(asDivIsisSession());
xhtml.appendToBody(resourcesDiv());
final Element div = xhtmlRenderer.div_p("Specifications", HtmlClass.SECTION);
final Element ul = xhtmlRenderer.ul(HtmlClass.SPECIFICATIONS);
final ArrayList<ObjectSpecification> allSpecs =
Lists.newArrayList(getSpecificationLoader().allSpecifications());
Collections.sort(allSpecs, ObjectSpecification.COMPARATOR_FULLY_QUALIFIED_CLASS_NAME);
final List<ObjectSpecification> sorted = allSpecs;
for (final ObjectSpecification spec : sorted) {
final String specFullName = spec.getFullIdentifier();
final String uri =
MessageFormat.format("{0}/specs/{1}", getServletRequest().getContextPath(), specFullName);
ul.appendChild(xhtmlRenderer.li_a(uri, specFullName, "spec", "specs", HtmlClass.SPECIFICATION));
}
div.appendChild(ul);
xhtml.appendToBody(div);