final AndDescr lhs = new AndDescr();
ruleDescr.setLhs( lhs );
final PatternDescr patternDescr = new PatternDescr( StockTick.class.getName(),
"$tick" );
final BehaviorDescr windowDescr = new BehaviorDescr( "window" );
windowDescr.setSubType( "time" );
windowDescr.setParameters( Collections.singletonList( "60000" ) );
patternDescr.addBehavior( windowDescr );
lhs.addDescr( patternDescr );
ruleDescr.setConsequence( "System.out.println( $tick );" );