FactHandle handle = ksession.insert( new Entity( ) );
ksession.fireAllRules();
final ArrayList list = new ArrayList();
ksession.addEventListener( new RuleRuntimeEventListener() {
public void objectInserted( org.kie.api.event.rule.ObjectInsertedEvent objectInsertedEvent ) { }
public void objectUpdated( org.kie.api.event.rule.ObjectUpdatedEvent objectUpdatedEvent ) { }
public void objectDeleted( org.kie.api.event.rule.ObjectDeletedEvent objectRetractedEvent ) {
Object o = objectRetractedEvent.getOldObject();
if ( o instanceof TraitProxy ) {