parser.parseExpression();
// return the Expression object
return new JXPathExpression(
factory,
new JXPathCompiledExpression(expression, e));
} catch (TokenMgrError tme) {
// if parsing failed then throw an expression exception
throw new ExpressionException(tme);
} catch (JXPathException e) {
// if parsing failed then throw an expression exception