public <T> T evaluate(Exchange exchange, Class<T> type) {
Script script = ExchangeHelper.newInstance(exchange, scriptType);
// lets configure the script
configure(exchange, script);
Object value = script.run();
return exchange.getContext().getTypeConverter().convertTo(type, value);
}
private void configure(Exchange exchange, Script script) {
final Binding binding = script.getBinding();