log.warn("Problem evaluating the script", ex);
res.setSuccessful(false);
res.setResponseCode("500"); // $NON-NLS-1$
res.setResponseMessage(ex.toString());
} finally {
res.sampleEnd();
IOUtils.closeQuietly(is);
// Will be done by mgr.terminate() anyway
// if (bsfEngine != null) {
// bsfEngine.terminate();
// }