}
JsonNode reqAsJson = serializeRequest(path, request());
try {
ScriptResult result =ScriptingService.invoke(ScriptCall.rest(serv, reqAsJson));
return status(result.status(),result.content());
} catch (ScriptEvalException e) {
Logger.error("Error evaluating script",e);
return internalServerError("script failure "+ ExceptionUtils.getFullStackTrace(e));
}
// catch (IllegalStateException e){