return getDocument();
}
public Document fromTreeBaseToXml(SearchResults<?> searchResults) {
getDocument().addAnnotationValue("skos:historyNote", Constants.SKOSURI, "Mapped from TreeBASE schema using "+this.toString()+" $Rev: 1060 $");
SearchResultsType srt = searchResults.resultType();
switch(srt) {
case STUDY : return fromTreeBaseToXml((StudySearchResults) searchResults);
case MATRIX : return fromTreeBaseToXml((MatrixSearchResults) searchResults);
case TREE : return fromTreeBaseToXml((TreeSearchResults) searchResults);
case TAXON : return fromTreeBaseToXml((TaxonSearchResults) searchResults);