throw new RuntimeException( "Cannot have a stateful rule session, with sequential configuration set to true" );
}
readLock();
try {
WorkingMemoryFactory wmFactory = kieComponentFactory.getWorkingMemoryFactory();
AbstractWorkingMemory session = ( AbstractWorkingMemory ) wmFactory.createWorkingMemory( id, this,
sessionConfig, environment );
new StatefulKnowledgeSessionImpl(session);
if ( sessionConfig.isKeepReference() ) {
addStatefulSession(session);