public class KnowledgeStoreServiceImpl implements KnowledgeStoreService {
public StatefulKnowledgeSession newStatefulKnowledgeSession(
KnowledgeBase kbase, KnowledgeSessionConfiguration configuration,
Environment environment) {
return new StatefulKnowledgeSessionAdapter(JPAKnowledgeService.newStatefulKnowledgeSession(
(KieBase) ((KnowledgeBaseAdapter) kbase).delegate,
configuration == null ? null : ((KnowledgeSessionConfigurationAdapter) configuration).getDelegate(),
((EnvironmentAdapter) environment).delegate));
}