* java.lang.Object, java.lang.String)
*/
public void writeContent(final ITreeWriter writer, final Object element, final IExtension note) throws IOException {
DetailTextModel model = (DetailTextModel) note;
if (model.getXml() != null) {
final XMLElement htmlElement = new XMLElement();
htmlElement.setName(NodeTextBuilder.XML_NODE_XHTML_CONTENT_TAG);
htmlElement.setAttribute(NodeTextBuilder.XML_NODE_XHTML_TYPE_TAG, NodeTextBuilder.XML_NODE_XHTML_TYPE_DETAILS);
if(model.isHidden()){
htmlElement.setAttribute("HIDDEN", "true");
}
final String content = model.getXml().replace('\0', ' ');
writer.addElement('\n' + content + '\n', htmlElement);
}
return;