"end";
KnowledgeBase kbase = loadKnowledgeBaseFromString( str );
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
Person p1 = new Person( "John", "nobody", 25 );
ksession.execute( CommandFactory.newInsert( p1 ) );
FactHandle fh = ksession.getFactHandle( p1 );
Person p = new Person( "Frank", "nobody", 30 );
List<Setter> setterList = new ArrayList<Setter>();
setterList.add( CommandFactory.newSetter( "age", String.valueOf( p.getAge() ) ) );
setterList.add( CommandFactory.newSetter( "name", p.getName() ) );
setterList.add( CommandFactory.newSetter( "likes", p.getLikes() ) );
ksession.execute( CommandFactory.newModify( fh, setterList ) );
}