BSFEngine engine = null;
BSFEngine engine;
    public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException {        String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE);        String source = (String) args.get(AbstractWorkflow.BSF_SOURCE);        int row = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_ROW));        int col = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_COL));        String script = (String) args.get(AbstractWorkflow.BSF_SCRIPT);        WorkflowContext context = (WorkflowContext) transientVars.get("context");        WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry");        BSFManager mgr = new BSFManager();        ClassLoader loader = Thread.currentThread().getContextClassLoader();        if (loader != null) {            mgr.setClassLoader(loader);        }        mgr.registerBean("entry", entry);        mgr.registerBean("context", context);        mgr.registerBean("transientVars", transientVars);        mgr.registerBean("propertySet", ps);        BSFEngine engine = null;        try {            engine = mgr.loadScriptingEngine(language);        } catch (BSFException e) {            String message = "Could not load scripting engine for BSF language: " + language;            throw new WorkflowException(message, e);        }        try {            engine.eval(source, row, col, script);        } catch (BSFException e) {            String message = "BSF script/function could not run";            throw new WorkflowException(message, e);        }    }