@Deprecated
  public static synchronized void addCatalogue(
      String catalogueName, Catalogue<?> catalogue) throws GeneralSecurityException {
    if (catalogueName == null) {
      throw new IllegalArgumentException("catalogueName must be non-null.");
    }
    if (catalogue == null) {
      throw new IllegalArgumentException("catalogue must be non-null.");
    }
    if (catalogueMap.containsKey(catalogueName.toLowerCase(Locale.US))) {
      Catalogue<?> existing = catalogueMap.get(catalogueName.toLowerCase(Locale.US));
      if (!catalogue.getClass().getName().equals(existing.getClass().getName())) {
        logger.warning(
            "Attempted overwrite of a catalogueName catalogue for name " + catalogueName);
        throw new GeneralSecurityException(
            "catalogue for name " + catalogueName + " has been already registered");
      }
    }
    catalogueMap.put(catalogueName.toLowerCase(Locale.US), catalogue);
  }
Tries to add a catalogue, to enable custom configuration of key types and key managers.

<p>Adding a custom catalogue should be a one-time operaton. There is an existing catalogue,
throw exception if {@code catalogue} and the existing catalogue aren't instances of the same
class, and do nothing if they are.

@throws GeneralSecurityException if there's an existing catalogue and it is not an instance of
    the same class as {@code catalogue}
@deprecated Catalogues are no longer supported.
java_src/src/main/java/com/google/crypto/tink/Registry.java