mResults = new ProxiedQueryResults(proto, new AuthToken(authenticatedAccount).getEncoded(), mTarget.toString(), remoteServer.getName(), params, mode);
mResults = new ProxiedQueryResults(proto, new AuthToken(authenticatedAccount, isAdmin).getEncoded(), mTarget.toString(), remoteServer.getName(), params, mode);
    protected void setup(SoapProtocol proto, Account authenticatedAccount, byte[] types, SortBy searchOrder, int offset, int limit, Mailbox.SearchResultMode mode) throws ServiceException {        Provisioning prov  = Provisioning.getInstance();        Account acct = prov.get(AccountBy.id, mTarget.toString());        if (acct == null)            throw AccountServiceException.NO_SUCH_ACCOUNT(mTarget.toString());        Server remoteServer = prov.getServer(acct);        SearchParams params = new SearchParams();        params.setSortBy(searchOrder);        params.setTypes(types);        params.setOffset(offset);        params.setLimit(limit);        if (ZimbraLog.index.isInfoEnabled())             ZimbraLog.index.info("RemoteQuery of \""+mOp.toQueryString()+"\" sent to "+mTarget.toString()+" on server "+remoteServer.getName());        params.setQueryStr(mOp.toQueryString());        try {            mResults = new ProxiedQueryResults(proto, new AuthToken(authenticatedAccount).getEncoded(), mTarget.toString(), remoteServer.getName(), params, mode);        } catch (AuthTokenException e) {            throw ServiceException.FAILURE("AuthTokenException getting auth token: "+e.toString(), e);        }    }