public Object invoke(String function, Object[] args) {
logger.debug("Calling {} in {}", function, routineName);
try {
return invocable.invokeFunction(function, args);
} catch (ScriptException ex) {
throw new ExternalRoutineInvocationException(routineName, ex);
} catch (NoSuchMethodException ex) {
throw new ExternalRoutineInvocationException(routineName, ex);
}
}