// Execute the script without providing a request or response, in the simplest possible way
final SlingBindings bindings = new SlingBindings();
final StringWriter sw = new StringWriter();
bindings.put("StandaloneScriptExecutionServletOutput", sw);
script.eval(bindings);
response.setContentType("text/plain");
response.getWriter().write(sw.toString());
}
}