throws XPathExpressionException {
// determine the local XPath
XPath localXPath = xpath;
if (this.getNamespaces() != null) {
NamespaceContextImpl ns = new NamespaceContextImpl(this.getNamespaces());
localXPath = XPathFactory.newInstance().newXPath();
localXPath.setNamespaceContext(ns);
}
// evaluate and resolve properties