{
}
public void processRequest(ItsNatServletRequest request, ItsNatServletResponse response)
{
ItsNatDocument itsNatDoc = request.getItsNatDocument();
Document doc = itsNatDoc.getDocument();
Element discsElem = doc.getDocumentElement();
Element cdListElem = ItsNatTreeWalker.getLastChildElement(discsElem);
ItsNatServlet servlet = request.getItsNatServlet();
ItsNatDocFragmentTemplate fragTemplate = servlet.getItsNatDocFragmentTemplate("manual.core.xmlFragExample");
DocumentFragment docFrag = fragTemplate.loadDocumentFragment(itsNatDoc);
discsElem.insertBefore(docFrag,cdListElem); // docFrag is empty now
ElementGroupManager factory = itsNatDoc.getElementGroupManager();
ElementList discList = factory.createElementList(cdListElem,true);
addCD("Help","The Beatles",new String[] {"A Hard Day's Night","Let It Be"},discList);
addCD("Making Movies","Dire Straits",new String[] {"Tunnel Of Love","Romeo & Juliet"},discList);
}