SearchGalResult result = Provisioning.getInstance().getDomain(acct).searchGal("", Provisioning.GAL_SEARCH_TYPE.ALL, tokenAttr);
Domain d = Provisioning.getInstance().getDomain(acct); SearchGalResult result = Provisioning.getInstance().searchGal(d, "", Provisioning.GAL_SEARCH_TYPE.ALL, tokenAttr);
    public Element handle(Element request, Map<String, Object> context) throws ServiceException {        ZimbraSoapContext lc = getZimbraSoapContext(context);        Element response = lc.createElement(AccountService.SYNC_GAL_RESPONSE);        String tokenAttr = request.getAttribute(MailService.A_TOKEN, "");                Account acct = getRequestedAccount(getZimbraSoapContext(context));        SearchGalResult result = Provisioning.getInstance().getDomain(acct).searchGal("", Provisioning.GAL_SEARCH_TYPE.ALL, tokenAttr);        if (result.token != null)            response.addAttribute(MailService.A_TOKEN, result.token);        for (GalContact contact : result.matches)            SearchGal.addContact(response, contact);        return response;    }