case ACL.GRANTEE_GROUP:
case ACL.GRANTEE_GROUP:   throw AccountServiceException.NO_SUCH_GROUP(name);
    static String lookupZimbraId(String name, byte type, ZimbraContext lc) throws ServiceException {        if (type == ACL.GRANTEE_ALL)            return ACL.GUID_ALL;        Provisioning prov = Provisioning.getInstance();        NamedEntry nentry = null;        if (name != null)            switch (type) {                case ACL.GRANTEE_USER:    if (name.indexOf('@') == -1) {                                              Account authacct = prov.getAccountById(lc.getAuthtokenAccountId());                                              String authname = (authacct == null ? null : authacct.getName());                                              if (authacct != null)                                                  name += authname.substring(authname.indexOf('@'));                                          }                                          nentry = prov.getAccountByName(name);  break;                case ACL.GRANTEE_COS:     nentry = prov.getCosByName(name);      break;                case ACL.GRANTEE_DOMAIN:  nentry = prov.getDomainByName(name);   break;                case ACL.GRANTEE_GROUP:   nentry = null;                                               break;            }        if (nentry != null)            return (type == ACL.GRANTEE_ALL ? null : nentry.getId());        switch (type) {            case ACL.GRANTEE_USER:    throw AccountServiceException.NO_SUCH_ACCOUNT(name);            case ACL.GRANTEE_COS:     throw AccountServiceException.NO_SUCH_COS(name);            case ACL.GRANTEE_DOMAIN:  throw AccountServiceException.NO_SUCH_DOMAIN(name);            case ACL.GRANTEE_GROUP:            default:  throw ServiceException.FAILURE("LDAP entry not found for " + name + " : " + type, null);        }    }