public <SerializationT extends Serialization> Parameters parseParameters(
      SerializationT serializedParameters) throws GeneralSecurityException {
    ParserIndex index =
        new ParserIndex(
            serializedParameters.getClass(), serializedParameters.getObjectIdentifier());

    if (!parametersParserMap.containsKey(index)) {
      throw new GeneralSecurityException(
          "No Parameters Parser for requested key type " + index + " available");
    }
    @SuppressWarnings("unchecked") // We know we only insert like this.
    ParametersParser<SerializationT> parser =
        (ParametersParser<SerializationT>) parametersParserMap.get(index);
    return parser.parseParameters(serializedParameters);
  }
Parses the given serialization into a Parameters.

<p>This will look up a previously registered parser for the passed in {@code SerializationT}
class, and the used object identifier (as indicated by {@code
serializedKey.getObjectIdentifier()}), and then parse the object with this parsers.
java_src/src/main/java/com/google/crypto/tink/internal/SerializationRegistry.java