public KnowledgeBase getKnowledgeBase() {
   if (this.kbase == null) {
     this.kbase = new KnowledgeBaseImpl(session.getRuleBase());
   }
   return this.kbase;
 }
 public StatefulKnowledgeSessionImpl(ReteooWorkingMemory session) {
   this(session, new KnowledgeBaseImpl(session.getRuleBase()));
 }