public void afterPropertiesSet() throws Exception {
public void afterPropertiesSet() throws XPathExpressionException {
    public void afterPropertiesSet() throws Exception {        if (xPathExpression == null) {            if (xpath == null) {                throw new IllegalArgumentException("You must specify the xpath property");            }            if (factory == null) {                factory = XPathFactory.newInstance();            }            XPath xpathObject = factory.newXPath();            xpathObject.setXPathVariableResolver(variableResolver);            if (functionResolver != null) {                xpathObject.setXPathFunctionResolver(functionResolver);            }            if (namespaceContext != null) {                xpathObject.setNamespaceContext(namespaceContext);            }            xPathExpression = xpathObject.compile(xpath);        }    }