sessionConfiguration.setClockType( ClockType.PSEUDO_CLOCK );
sessionConfiguration.setKeepReference( false );
InternalWorkingMemory workingMemory = (InternalWorkingMemory) rb.newStatefulSession( sessionConfiguration, null );
if ( coverage != null ) workingMemory.addEventListener( coverage );
try {
AuditLogReporter logger = new AuditLogReporter( workingMemory );
new ScenarioRunner( scenario, res, workingMemory );
SingleScenarioResult r = new SingleScenarioResult();
r.auditLog = logger.buildReport();
r.result = new ScenarioRunResult( null, scenario );
return r;
} catch ( ClassNotFoundException e ) {
log.error( "Unable to load a required class.", e );
throw new DetailedSerializationException( "Unable to load a required class.", e.getMessage() );