Code example for FactoryConfigurationError

0
ls = (DOMImplementationLS) impl;
      } 
    catch (Exception e)
      { 
        throw new FactoryConfigurationError(e);
      } 
  } 
 
  public DocumentBuilder newDocumentBuilder()
    throws ParserConfigurationException 
  { 
    LSParser parser = null;
    try 
      { 
        parser = ls.createLSParser(DOMImplementationLS.MODE_ASYNCHRONOUS,
                                   "http://www.w3.org/TR/REC-xml"); 
      } 
    catch (DOMException e)
      { 
        if (e.code == DOMException.NOT_SUPPORTED_ERR)