/**
* Creates an xml block structure from a model, and injects it into the page.
*/
private XmlStructure createXml(ConversationView model) {
String xml =
XmlRenderer.render(new ViewIdMapper(ModelIdMapperImpl.create(model, "empty")), model);
Element dom = Document.get().createElement("xml");
dom.setInnerHTML(xml);
Document.get().getBody().appendChild(dom);
return XmlStructure.create(XmlRenderer.ROOT_ID);
}