m.addLhsItem( new FactPattern( "Accident" ) );
m.addAttribute( new RuleAttribute( "no-loop",
"true" ) );
m.addRhsItem( new ActionInsertFact( "Report" ) );
ActionGlobalCollectionAdd ag = new ActionGlobalCollectionAdd();
ag.factName = "x";
ag.globalName = "g";
m.addRhsItem( ag );
m.name = "my rule";
final String xml = p.marshal( m );