(InternalRuleBase) ((InternalKnowledgeBase) kruntime.getKnowledgeBase()).getRuleBase(),
null,
null,
this.env
);
ProcessInstanceMarshaller marshaller = getMarshallerFromContext( context );
context.wm = ((StatefulKnowledgeSessionImpl) kruntime).getInternalWorkingMemory();
processInstance = marshaller.readProcessInstance(context);
context.close();
} catch ( IOException e ) {
e.printStackTrace();
throw new IllegalArgumentException( "IOException while loading process instance: " + e.getMessage(),
e );