public <KeyT extends Key, SerializationT extends Serialization> SerializationT serializeKey(
      KeyT key, Class<SerializationT> serializationClass, @Nullable SecretKeyAccess access)
      throws GeneralSecurityException {
    return registry.get().serializeKey(key, serializationClass, access);
  }
Serializes a given Key into a "SerializationT" object.

<p>This will look up a previously registered serializer for the requested {@code
SerializationT} class and the passed in key type, and then call serializeKey on the result.
java_src/src/main/java/com/google/crypto/tink/internal/MutableSerializationRegistry.java