instance = ProcessInstance.create((ProcessDefinition)pd.getProcessDefinitionDesigner().getActivity(), "test instance", null);
org.apache.bsf.BSFManager manager = super.createBSFManager();
manager.declareBean("instance", instance, ProcessInstance.class);
manager.declareBean("activity", new ScriptActivity(), Activity.class);
manager.declareBean("util", new ScriptUtil(), ScriptUtil.class);
return manager;
}