manager.declareBean("stdout", stdout, stdout.getClass());
manager.declareBean("console", System.out, System.out.getClass());
log.debug("Info: Scripting language: " + langName);
try {
manager.exec(langName, fname, (isFile ? 1 : 2), 0,
IOUtils.readerToString(reader, 50000));
} catch (BSFException ex) {
Throwable e = ex;
Throwable cause = ex.getTargetException();
if(cause != null)