Code example for TransformerConfigurationException

0
                                                  (resolver != null),
                                                  (errorListener != null));
          } 
        catch (IOException e)
          { 
            throw new TransformerConfigurationException (e);
          } 
      } 
    else if (source instanceof DOMSource)
      { 
        DOMSource ds = (DOMSource) source;
        Node node = ds.getNode ();
        if (!(node instanceof GnomeDocument))
          { 
            String msg = "Node is not a GnomeDocument";
            throw new TransformerConfigurationException (msg);
          } 
        GnomeDocument doc = (GnomeDocument) node;
        stylesheet = newStylesheetFromDoc (doc);
      } 
    else