strategies = addProcessInstanceResolverStrategyIfAvailable(strategies);
Marshaller marshaller = MarshallerFactory.newMarshaller( kbase, strategies );
// Prepare input for marshaller
ByteArrayInputStream bais = new ByteArrayInputStream( marshalledData.byteArray );
SessionConfiguration conf = SessionConfiguration.getDefaultInstance();
Environment env = EnvironmentFactory.newEnvironment();
// Unmarshall
StatefulKnowledgeSession ksession = marshaller.unmarshall( bais, conf, env );