return ToXML.encodeDocument(response, zc, dh.getDocument(), ver);
return ToXML.encodeDocument(response, zsc, dh.getDocument(), ver);
    Element addDocumentHit(ZimbraSoapContext zc, Element response, DocumentHit dh) throws ServiceException {        int ver = dh.getVersion();        if (dh.getItemType() == MailItem.TYPE_DOCUMENT)            return ToXML.encodeDocument(response, zc, dh.getDocument(), ver);        else if (dh.getItemType() == MailItem.TYPE_WIKI)            return ToXML.encodeWiki(response, zc, (WikiItem)dh.getDocument(), ver);        throw ServiceException.UNKNOWN_DOCUMENT("invalid document type "+dh.getItemType(), null);    }