throw ObjectHelper.wrapCamelExecutionException(exchange, e);
}
}
private Expression createExpression(Exchange exchange) {
SimpleLanguage simple = (SimpleLanguage) exchange.getContext().resolveLanguage("simple");
if (resultType != null) {
simple.setResultType(resultType);
}
// resolve property placeholders
try {
String resolve = exchange.getContext().resolvePropertyPlaceholders(text);
return simple.createExpression(resolve);
} catch (Exception e) {
throw ObjectHelper.wrapCamelExecutionException(exchange, e);
}
}