if ( restrictions.length > 1 ) {
AbstractCompositeRestriction composite = null;
if ( top.getConnective() == RestrictionConnectiveDescr.AND ) {
composite = new AndCompositeRestriction( restrictions );
} else if ( top.getConnective() == RestrictionConnectiveDescr.OR ) {
composite = new OrCompositeRestriction( restrictions );
} else {
context.getErrors().add( new RuleError( context.getRule(),
fieldConstraintDescr,
null,
"This is a bug: Impossible to create a composite restriction for connective: " + top.getConnective()+ "' for field '"+ fieldConstraintDescr.getFieldName() +"' in the rule '" + context.getRule().getName() + "'" ) );