Activity activity = activityInstance.getActivity();
IPersistenceService persistenceService = rtCtx.getPersistenceService();
ICalendarService calService = rtCtx.getCalendarService();
IProcessInstance processInstance = token.getProcessInstance();
WorkflowSession workflowSession = (WorkflowSession) ((IWorkflowSessionAware) processInstance)
.getCurrentWorkflowSession();
if (workflowSession == null) {
throw new EngineException(token.getProcessInstance(),
activityInstance.getActivity(),