public StatelessKnowledgeSessionImpl(
     final InternalKnowledgeBase kBase,
     final KnowledgeAgent kagent,
     final KieSessionConfiguration conf) {
   this.kBase = kBase;
   this.kagent = kagent;
   this.conf = (conf != null) ? conf : SessionConfigurationImpl.getDefaultInstance();
   this.environment = EnvironmentFactory.newEnvironment();
   this.wmFactory = kBase.getConfiguration().getComponentFactory().getWorkingMemoryFactory();
 }
 public Environment newEnvironment() {
   return EnvironmentFactory.newEnvironment(); // new EnvironmentImpl(); //
 }