if (defs != 1)
throw new IllegalStateException("Must define exactly one of 'total-below', 'total-over', 'percent-below', 'percent-over'");
}
@Override
public boolean evaluate(Statistics statistics) {
<BUG>OperationStats stats = statistics.getOperationsStats().get(on);
if (stats == null) throw new IllegalStateException("No statistics for operation " + on);
DefaultOutcome outcome = stats.getRepresentation(DefaultOutcome.class);

if (outcome == null) throw new IllegalStateException("Cannot determine error count from " + stats);
</BUG>
log.info("Encountered " + outcome.errors + " errors " + PropertyHelper.toString(this));

if (defs != 1)
throw new IllegalStateException("Must define exactly one of 'total-below', 'total-over', 'percent-below', 'percent-over'");
}
@Override
public boolean evaluate(Statistics statistics) {
DefaultOutcome outcome = statistics.getRepresentation(on, DefaultOutcome.class);
if (outcome == null) throw new IllegalStateException("Cannot determine error count from " + statistics);
log.info("Encountered " + outcome.errors + " errors " + PropertyHelper.toString(this));
