HashMap attrs = new HashMap();
Map<String, String> attrs = new HashMap<String, String>();
    public void deleteDomain(String zimbraId) throws ServiceException {        // TODO: should only allow a domain delete to succeed if there are no people        // if there aren't, we need to delete the people trees first, then delete the domain.        DirContext ctxt = null;        LdapDomain d = null;        try {            ctxt = LdapUtil.getDirContext(true);            d = (LdapDomain) getDomainById(zimbraId, ctxt);            if (d == null)                throw AccountServiceException.NO_SUCH_DOMAIN(zimbraId);            String name = d.getName();            ctxt.unbind("ou=people,"+d.getDN());            ctxt.unbind(d.getDN());            sDomainCache.remove(d);                        String defaultDomain = getConfig().getAttr(A_zimbraDefaultDomainName, null);            if (name.equalsIgnoreCase(defaultDomain)) {                try {                    HashMap attrs = new HashMap();                    attrs.put(A_zimbraDefaultDomainName, "");                    getConfig().modifyAttrs(attrs);                } catch (Exception e) {                    ZimbraLog.account.warn("unable to remove config attr:"+A_zimbraDefaultDomainName, e);                 }            }        } catch (ContextNotEmptyException e) {            throw AccountServiceException.DOMAIN_NOT_EMPTY(d.getName());        } catch (NamingException e) {            throw ServiceException.FAILURE("unable to purge domain: "+zimbraId, e);        } finally {            LdapUtil.closeContext(ctxt);        }    }