throw ServiceException.FAILURE("unable to lookup COS by name: "+name, e);
throw ServiceException.FAILURE("unable to lookup COS by name: "+name+" message: "+e.getMessage(), e);
    private Cos getCosByName(String name, DirContext initCtxt) throws ServiceException {        DirContext ctxt = initCtxt;        LdapCos cos = sCosCache.getByName(name);        if (cos != null)            return cos;        try {            if (ctxt == null)                ctxt = LdapUtil.getDirContext();            String dn = cosNametoDN(name);                        Attributes attrs = ctxt.getAttributes(dn);            cos  = new LdapCos(dn, attrs, this);            sCosCache.put(cos);                        return cos;        } catch (NameNotFoundException e) {            return null;        } catch (InvalidNameException e) {            return null;        } catch (NamingException e) {            throw ServiceException.FAILURE("unable to lookup COS by name: "+name, e);        } finally {            if (initCtxt == null)                LdapUtil.closeContext(ctxt);        }    }