package org.kie.builder;

import org.kie.KieBase;
import org.kie.runtime.KieSession;
import org.kie.runtime.StatelessKieSession;

public interface KieContainer {

    GAV getGAV();
    
    Results verify();

    void updateToVersion(GAV version);

    KieBase getKieBase();

    KieBase getKieBase(String kBaseName);

    KieSession newKieSession();

    KieSession newKieSession(String kSessionName);

    StatelessKieSession newKieStatelessSession();
    
    StatelessKieSession newKieStatelessSession(String kSessionName);
    
    ClassLoader getClassLoader();
}

@@ -43,16 +43,52 @@
 ieBase;%0A
+import org.kie.runtime.Environment;%0A
 import o
@@ -410,35 +410,168 @@
 Session(
-String kSessionName
+Environment environment);%0A%0A    KieSession newKieSession(String kSessionName);%0A%0A    KieSession newKieSession(String kSessionName, Environment environment
 );%0A%0A    

allow to specify an optional Environment when creating a new KieSession