JSCRIPT_ENABLE, true)) {
return "Script execution disabled";
}
try {
Jscript jscript = ORMManager.get(Jscript.class).getById(id);
if (jscript == null) {
return MessageFormat.format("Script with id {0} not found", id);
}
String content = jscript.getContent();
if (content == null) {
return MessageFormat.format(
"Null content of script with id {0}", id);
}