/** The contained constraints. */
private AndOperator constraints = new AndOperator();
@Override
public void apply(Record record, VariableSpace parentScope) throws CheckError {
CheckResult res;
if (checkedField == null || !BlockUtils.exists(checkedField, record, parentScope)) {
res = new CheckResult(constraints.check(record, parentScope), this, summary);
} else {
CheckResult andresult = constraints.check(record, parentScope);
res = new CheckResult(this, andresult.isPassed(), checkedField, BlockUtils.getValue(checkedField, record, parentScope), summary, andresult.getCauses());
}
if (! res.isPassed()) {
throw new CheckError(res);
}
}