SearchGalResult result = d.autoCompleteGal(query, Provisioning.GAL_SEARCH_TYPE.ALL, 100);
SearchGalResult result = mProv.autoCompleteGal(d, query, Provisioning.GAL_SEARCH_TYPE.ALL, 100);
    private void doAutoCompleteGal(String[] args) throws ServiceException {        boolean verbose = false;        int i = 1;                if (args.length < i+1) {            usage();            return;        }        if (args[i].equals("-v")) {            verbose = true;            i++;            if (args.length < i-1) {                usage();                return;            }        }                if (args.length < i+2) {            usage();            return;        }        String domain = args[i];        String query = args[i+1];                Domain d = lookupDomain(domain);        SearchGalResult result = d.autoCompleteGal(query, Provisioning.GAL_SEARCH_TYPE.ALL, 100);        for (GalContact contact : result.matches)            dumpContact(contact);    }    