WorkflowContext workflowContext = (WorkflowContext) loadObject(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext"));
WorkflowContext workflowContext = null;  try { workflowContext = (WorkflowContext) ClassLoaderUtil.loadClass(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext"), getClass()).newInstance(); } catch (Exception e) { e.printStackTrace(); }
    public void setSessionContext(SessionContext context) {        WorkflowContext workflowContext = (WorkflowContext) loadObject(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext"));        if (workflowContext instanceof EJBWorkflowContext) {            ((EJBWorkflowContext) workflowContext).setSessionContext(context);        }        super.context = workflowContext;    }