@Deprecated
  public static synchronized <P> void registerKeyManager(
      String typeUrl, final KeyManager<P> manager, boolean newKeyAllowed)
      throws GeneralSecurityException {
    if (manager == null) {
      throw new IllegalArgumentException("key manager must be non-null.");
    }
    if (!typeUrl.equals(manager.getKeyType())) {
      throw new GeneralSecurityException("Manager does not support key type " + typeUrl + ".");
    }
    registerKeyManager(manager, newKeyAllowed);
  }
Tries to register {@code manager} for the given {@code typeUrl}. If {@code newKeyAllowed} is
true, users can generate new keys with this manager using the {@link Registry#newKey} methods.

<p>Does nothing if there's an existing key manager and it's an instance of the same class as
{@code manager}.

@throws GeneralSecurityException if there's an existing key manager and it is not an instance
    of the same class as {@code manager}
@deprecated use {@link #registerKeyManager(KeyManager, boolean)
    registerKeyManager(KeyManager&lt;P&gt;, boolean)}
java_src/src/main/java/com/google/crypto/tink/Registry.java