Reader sr = new StringReader (script);
cx.evaluateReader (scope, sr, "<script>", 1, null);
result.set(convertResult(cx, scope, formPars));
} catch (AbandonedException e) {
// thrown when the activity was deliberatly abandoned.
result.set (new ExceptionResult (e.getMessage ()));
} catch (RemoteException e) {
throw e;
} catch (IOException e) {
logger.error (e.getMessage(), e);
throw new CannotExecuteException (e.getMessage());