code: public Set<ConstraintViolation> validate(int record) {
  		Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>();
  		for (int ds = 0; ds < 250; ++ds) {
  			try {
  				DataSetInfo dataSetInfo = dsiFactory.create(IIM.DS(record, ds));
  				errors.addAll(validate(dataSetInfo));
  			} catch (InvalidDataSetException ignored) {
  				// DataSetFactory doesn't know about this ds, so will skip it
  			}
  		}
  		return errors;
  	}
docs: Checks all data sets in a given record for constraint violations.
  
  @param record
  IIM record (1,2,3, ...) to check
  
  @return list of constraint violations, empty set if IIM file is valid