}
private boolean evaluate(final String script,
final Map<String, Object> scriptContext) {
if (StringUtils.hasText(script)) {
final IBeeScriptEngine engine = this.getScriptEngine();
if (null != engine) {
try {
final Object result = engine.eval(script, scriptContext);
return null != result ? Boolean.parseBoolean(result.toString()) : false;
} catch (Exception ex) {
this.getLogger().log(Level.SEVERE, null, ex);
return false;
}