// instantiate the ksession, set it's clock and register it
StatefulKnowledgeSession ksession = ( StatefulKnowledgeSession ) executionHandler.execute( (GenericCommand) cmd, pathContext );
if ( ksession != null ) {
SessionPseudoClock clock = (SessionPseudoClock) ksession.getSessionClock();
if ( clock.getCurrentTime() == 0 ) {
clock.advanceTime( startTime,
TimeUnit.MILLISECONDS );
}
this.ksessions.add( ksession );
}
} else if ( cmd instanceof GenericCommand) {