mHits.add(new ZMessageHit(h, cache));
mHits.add(new ZMessageHit(h));
    public ZSearchResult(Element e) throws ServiceException {        mSortBy = e.getAttribute(MailService.A_SORTBY);        mHasMore = e.getAttributeBool(MailService.A_QUERY_MORE);        mOffset = (int) e.getAttributeLong(MailService.A_QUERY_OFFSET);        mHits = new ArrayList<ZSearchHit>();        Map<String,ZEmailAddress> cache = new HashMap<String, ZEmailAddress>();        for (Element h: e.listElements()) {            if (h.getName().equals(MailService.E_CONV)) {                mHits.add(new ZConversationHit(h, cache));            } else if (h.getName().equals(MailService.E_MSG)) {                mHits.add(new ZMessageHit(h, cache));            } else if (h.getName().equals(MailService.E_CONTACT)) {                mHits.add(new ZContactHit(h));            } else if (h.getName().equals(MailService.E_DOC)) {                mHits.add(new ZDocumentHit(h));            } else if (h.getName().equals(MailService.E_WIKIWORD)) {                mHits.add(new ZDocumentHit(h));            }        }    }