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