protected boolean matches(Exchange exchange, Object scriptValue) {
return ObjectConverter.toBool(scriptValue);
}
protected ScriptEngine createScriptEngine() {
ScriptEngineManager manager = new ScriptEngineManager();
try {
engine = manager.getEngineByName(scriptEngineName);
} catch (NoClassDefFoundError ex) {
LOG.error("Cannot load the scriptEngine for " + scriptEngineName + ", the exception is " + ex
+ ", please ensure correct JARs is provided on classpath.");
}
if (engine == null) {