domain.getAllAccounts(visitor);
mProv.getAllAccounts(domain, visitor);
    private void doGetAllAccounts(Domain domain, final boolean verbose) throws ServiceException {        NamedEntry.Visitor visitor = new NamedEntry.Visitor() {            public void visit(com.zimbra.cs.account.NamedEntry entry) throws ServiceException {                if (verbose)                    dumpAccount((Account) entry);                else                     System.out.println(entry.getName());                                    }        };        domain.getAllAccounts(visitor);    }