docs: public void initialize(final BSFManager mgr, String lang, Vector declaredBeans) throws BSFException {
          super.initialize(mgr, lang, declaredBeans);
          ClassLoader parent = mgr.getClassLoader();
          if (parent == null)
              parent = GroovyShell.class.getClassLoader();
          setLoader(mgr, parent);
          execScripts = new HashMap<Object, Class>();
          evalScripts = new HashMap<Object, Class>();
          context = shell.getContext();
          // create a shell
          // register the mgr with object name "bsf"
          context.setVariable("bsf", new BSFFunctions(mgr, this));
          int size = declaredBeans.size();
          for (int i = 0; i < size; i++) {
              declareBean((BSFDeclaredBean) declaredBeans.elementAt(i));
          }
      }