code: public static void validateEditions(AppliesToFilterInfo info, String appliesToHeader) throws RepositoryResourceCreationException {
          if (info.getRawEditions() != null) {
              for (String rawEdition : info.getRawEditions()) {
                  List<String> mappedEditions = mapRawEditionToHumanReadable(rawEdition);
                  if (mappedEditions.size() == 1 && mappedEditions.get(0).equals(EDITION_UNKNOWN)) {
                      throw new RepositoryResourceCreationException("Resource applies to at least one unknown edition: " + rawEdition +
                                                                    "; appliesTo= " + appliesToHeader, null);
                  }
              }
          }
      }
docs: Validates the list of rawEditions and throws RepositoryResourceCreationException if any of
  them are unknown.
  
  Clients of this class should call this method once the AppliesToFilterInfo object has been
  created in order to check whether it is valid.