docs: void validateAffiliationNames(String name) throws InvalidArgumentException {
          checkFormat(name);
          if (name.startsWith(".")) {
              throw new InvalidArgumentException("Affiliation name cannot start with a dot '.'");
          }
          if (name.endsWith(".")) {
              throw new InvalidArgumentException("Affiliation name cannot end with a dot '.'");
          }
          for (int i = 0; i < name.length(); i++) {
              if ((name.charAt(i) == '.') && (name.charAt(i) == name.charAt(i - 1))) {
                  throw new InvalidArgumentException("Affiliation name cannot contain multiple consecutive dots '.'");
              }
          }
      }