String fileName = "TB" + date.getTime();
StringBuilder builder = new StringBuilder();
if ( getFormat(request) == FORMAT_NEXML ) {
Document doc = DocumentFactory.safeCreateDocument();
NexmlDocumentWriter ndw = new NexmlDocumentWriter(null,getTaxonLabelHome(), doc);
ndw.fromTreeBaseToXml(treeResults);
builder.append(doc.getXmlString());
}
else {
Set<PhyloTree> trees = treeResults.getResults();
TreeBlock treeBlock = new TreeBlock();