public void cancelLiveCase(String sessionID,SerialProcess liveProcess,SerialCase liveCase)
throws WorkflowException, RemoteException
{
Context cotext=(Context)this.workflowService;
SessionManager manager=cotext.getEngine().getSessionManager();
WorkflowSession session=manager.findSession(sessionID);
WorkflowProcess workflowProcess=workflowService.findWorkflowPackage(liveProcess.getPackageID()).findWorkflowProcess(liveProcess.getUUID());
CaseDatabase caseDatabase=workflowService.getCaseDatabase();
WorkflowCase localCase=caseDatabase.findWorkflowCase(session,workflowProcess,liveCase.getUUID());
String packageID=localCase.getWorkflowProcess().getWorkflowPackage().getUUID();
if(!liveCase.getPackageID().equals(packageID))