code: @SuppressWarnings("unchecked")
  	public static <T extends Savepoint> SavepointSerializer<T> getSerializer(T savepoint) {
  		Preconditions.checkNotNull(savepoint, "Savepoint");
  		SavepointSerializer<T> serializer = (SavepointSerializer<T>) SERIALIZERS.get(savepoint.getVersion());
  		if (serializer != null) {
  			return serializer;
  		} else {
  			throw new IllegalArgumentException("Unknown savepoint version " + savepoint.getVersion() + ".");
  		}
  	}
docs: Returns the {@link SavepointSerializer} for the given savepoint.
  
  @param savepoint Savepoint to get serializer for
  @param <T>       Type of savepoint
  @return Savepoint serializer for the savepoint
  @throws IllegalArgumentException If unknown savepoint version