if (ctx != null) { eng.setNamespaceContext(ctx); } return eng;
    private static XpathEngine newXpathEngine() {        try {            Class.forName("javax.xml.xpath.XPath");            Class c = Class.forName("org.custommonkey.xmlunit.jaxp13"                                    + ".Jaxp13XpathEngine");            return (XpathEngine) c.newInstance();        } catch (Throwable ex) {            // should probably only catch ClassNotFoundException, but some            // constellations - like Ant shipping a more recent version of            // xml-apis than the JDK - may contain the JAXP 1.3 interfaces            // without implementations            return new SimpleXpathEngine();        }    }