time );
final byte[] b1 = bos.toByteArray();
bos.close();
ByteArrayInputStream bais = new ByteArrayInputStream( b1 );
StatefulKnowledgeSession ksession2 = marshaller.unmarshall( bais,
new SessionConfiguration(),
ksession.getEnvironment());
bais.close();
bos = new ByteArrayOutputStream();