kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
MvelAction mvelAction2 = new MvelAction( "context.parameters.globalParams.setInOut( ['list' : new java.util.ArrayList()] )");
StatelessKnowledgeSessionExecuteStage stage1 = new StatelessKnowledgeSessionExecuteStage();
mvelAction2.setReceiver( stage1 );
MvelAction mvelAction3 = new MvelAction( "context.resultHandler.handleResult( context.result )");
stage1.setReceiver( mvelAction3 );
StatelessKnowledgeSessionPipelineImpl pipeline = new StatelessKnowledgeSessionPipelineImpl(ksession);
pipeline.setReceiver( mvelAction2 );
ResultHandlerImpl handler = new ResultHandlerImpl();