private Constraint referredConstraint = null;
@Override
public CheckResult check(Record record, VariableSpace scope) {
if (mapping.hasRules()) {
Record mapped = new MappedRecord(record, mapping);
return referredConstraint.check(mapped, scope);
}
return referredConstraint.check(record, scope);
}