final ConstraintNode c2 = new ConstraintNodeImpl( "name",
"==",
new StringValue( "Fred" ) );
final ConstraintNode c3 = new ConstraintNodeImpl( "age",
"==",
new IntegerValue( 20 ) );
final ConstraintNode c4 = new ConstraintNodeImpl( "age",
"==",
new IntegerValue( 30 ) );
model.setRoot( type );
type.getChildren().add( c1 );
type.getChildren().add( c2 );
c1.getChildren().add( c3 );