porting some example to the new kie api