return service;
}
private SingleSessionCommandService createSingleSessionCommandService(int sessionId, KnowledgeBase kbase, SessionConfiguration conf, Environment env) {
SingleSessionCommandService service = new SingleSessionCommandService(sessionId, kbase, conf, env);
service.addInterceptor(new ManualPersistInterceptor(service));
service.addInterceptor(new ManualPersistProcessInterceptor(service));
new KnowledgeLogger(service.getKieSession());
return service;
}