putInfo(response, results);
putInfo(response, params, results);
    public Element handle(Element request, Map<String, Object> context) throws ServiceException {        ZimbraSoapContext zsc = getZimbraSoapContext(context);        SoapSession session = (SoapSession) zsc.getSession(SessionCache.SESSION_SOAP);        Mailbox mbox = getRequestedMailbox(zsc);        SearchParams params = parseCommonParameters(request, zsc);        SearchOperation op = new SearchOperation(session, zsc, zsc.getOperationContext(), mbox, Requester.SOAP,  params);        op.schedule();        ZimbraQueryResults results = op.getResults();                try {            // create the XML response Element            Element response = zsc.createElement(MailService.SEARCH_RESPONSE);            // must use results.getSortBy() because the results might have ignored our sortBy            // request and used something else...            SortBy sb = results.getSortBy();            response.addAttribute(MailService.A_SORTBY, sb.toString());            ResultsPager pager = ResultsPager.create(results, params);            response.addAttribute(MailService.A_QUERY_OFFSET, params.getOffset());            Element retVal = putHits(zsc, response, pager, DONT_INCLUDE_MAILBOX_INFO, params);                        // call me AFTER putHits since some of the <info> is generated by the getting of the hits!            putInfo(response, results);                        return retVal;        } finally {            results.doneWithSearchResults();        }    }