in src/main/java/org/apache/servicemix/expression/JAXPXPathExpression.java [133:153]
public Object evaluate(MessageExchange exchange, NormalizedMessage message, QName returnType) throws MessagingException {
try {
afterPropertiesSet();
Object object = getXMLNode(exchange, message);
synchronized (this) {
variableResolver.setExchange(exchange);
variableResolver.setMessage(message);
return evaluateXPath(object, returnType);
}
} catch (TransformerException e) {
throw new MessagingException(e);
} catch (XPathExpressionException e) {
throw new MessagingException(e);
} catch (ParserConfigurationException e) {
throw new MessagingException(e);
} catch (IOException e) {
throw new MessagingException(e);
} catch (SAXException e) {
throw new MessagingException(e);
}
}