throw ServiceException.FAILURE("unable to lookup distribution list via query: "+query, e);
throw ServiceException.FAILURE("unable to lookup distribution list via query: "+query+ " message: "+e.getMessage(), e);
    private LdapDistributionList getDistributionListByQuery(String base, String query, DirContext initCtxt) throws ServiceException {        DirContext ctxt = initCtxt;        try {            if (ctxt == null)                ctxt = LdapUtil.getDirContext();            NamingEnumeration ne = ctxt.search(base, query, sSubtreeSC);            if (ne.hasMore()) {                SearchResult sr = (SearchResult) ne.next();                ne.close();                return new LdapDistributionList(sr.getNameInNamespace(), sr.getAttributes());            }        } catch (NameNotFoundException e) {            return null;        } catch (InvalidNameException e) {            return null;                                } catch (NamingException e) {            throw ServiceException.FAILURE("unable to lookup distribution list via query: "+query, e);        } finally {            if (initCtxt == null)                LdapUtil.closeContext(ctxt);        }        return null;    }