public class KieModuleFromMultipleFilesExample {
public void go(PrintStream out) {
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
Resource ex1Res = ks.getResources().newFileSystemResource( getFile("named-kiesession") ) ;
Resource ex2Res = ks.getResources().newFileSystemResource( getFile("kiebase-inclusion") ) ;
KieModule kModule = kr.addKieModule(ex1Res, ex2Res);
KieContainer kContainer = ks.newKieContainer( kModule.getReleaseId() );
KieSession kSession = kContainer.newKieSession( "ksession2" );
kSession.setGlobal( "out", out );