javaDialect.compileAll();
assertEquals( 0, javaDialect.getResults().size() );
final KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
List<KnowledgePackage> packages = new ArrayList<KnowledgePackage>();
packages.add( new KnowledgePackageImp(pkgBuilder.getPackage()) );
kbase.addKnowledgePackages( packages );
final StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.setGlobal( "value", true );