code: public void validateAttributes(Collection<String> attributes) throws CompatibilityException {
                  Validate.notNull(attributes);
                  for (String attribute : attributes) {
                          validateAttribute(attribute);
                  }
          }
docs: Checks if the given attributes are known, i.e. they are all contained
  in the attribute list.
  
  @param attributes Attributes to be checked.
  @throws IllegalArgumentException If not all given attribute are
  known.