KnowledgeBase kbase = loadKnowledgeBaseFromString(kconf, str);
StatelessKnowledgeSession ksession = createStatelessKnowledgeSession( kbase );
final List list = new ArrayList();
ksession.addEventListener( new AgendaEventListener() {
public void matchCancelled(MatchCancelledEvent event) {
assertNotNull( event.getKieRuntime() );
list.add( event );
}