if (id != null) cos = get(CosBy.ID, id);
if (id != null) cos = get(CosBy.id, id);
    public Cos getCOS(Account acct) throws ServiceException {        // CACHE. If we get reloaded from LDAP, cached data is cleared        Cos cos = (Cos) acct.getCachedData(DATA_COS);        if (cos == null) {            String id = acct.getAccountCOSId();                if (id != null) cos = get(CosBy.ID, id);                 if (cos == null) {                    Domain domain = getDomain(acct);                    String domainCosId = domain != null ? domain.getAttr(Provisioning.A_zimbraDomainDefaultCOSId, null) : null;                    if (domainCosId != null) cos = get(CosBy.ID, domainCosId);                }                if (cos == null) cos = get(CosBy.NAME, Provisioning.DEFAULT_COS_NAME);                if (cos != null) acct.setCachedData(DATA_COS, cos);        }        return cos;    }