protected Node getXPathResultNode ( String select , Document document ) throws ConfigurationException , TransformerException , XpathException { return getXPathResultAsDocument ( select , document ) . getDocumentElement ( ) ; }
Testable method to execute the copy - of transform and return the root node of the resulting Document .