if ( kbuilder.hasErrors() ) {
System.out.println( "Errors: " + kbuilder.getErrors() );
}
KnowledgeBaseProvider kbaseFactory = this.client.getKnowledgeBaseFactory();
KnowledgeBase kbase = kbaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
int fired = ksession.fireAllRules();