TreeWalker walker = new TreeWalker(builder);
TreeWalker walker = new TreeWalker(builder, new org.apache.xpath.DOM2Helper());
public javax.xml.transform.Templates processFromNode(Node node)          throws TransformerConfigurationException  {    try    {      TemplatesHandler builder = newTemplatesHandler();      TreeWalker walker = new TreeWalker(builder);      walker.traverse(node);      return builder.getTemplates();    }    catch (org.xml.sax.SAXException se)    {      if (m_errorListener != null)      {        try        {          m_errorListener.fatalError(new TransformerException(se));        }        catch (TransformerException ex)        {          throw new TransformerConfigurationException(ex);        }        return null;      }      else        // Should remove this later... but right now diagnostics from         // TransformerConfigurationException are not good.        // se.printStackTrace();        throw new TransformerConfigurationException("processFromNode failed",                                                    se);    }    catch (TransformerConfigurationException tce)    {      // Assume it's already been reported to the error listener.      throw tce;    }    catch (TransformerException tce)    {      // Assume it's already been reported to the error listener.      throw new TransformerConfigurationException(tce.getMessage(), tce);    }    catch (Exception e)    {      if (m_errorListener != null)      {        try        {          m_errorListener.fatalError(new TransformerException(e));        }        catch (TransformerException ex)        {          throw new TransformerConfigurationException(ex);        }        return null;      }      else        // Should remove this later... but right now diagnostics from         // TransformerConfigurationException are not good.        // se.printStackTrace();        throw new TransformerConfigurationException("processFromNode failed",                                                    e);    }  }