private Serde<Object> getSerdeFromName(String name, SerializerConfig serializerConfig) {
    String serdeClassName =
        serializerConfig.getSerdeFactoryClass(name).orElseGet(() -> SerializerConfig.getPredefinedSerdeFactoryName(name));
    return ReflectionUtil.getObj(serdeClassName, SerdeFactory.class).getSerde(name, serializerConfig);
  }
A helper method to get the Serde from the serdeName

@param name serde name
@param serializerConfig serializer config
@return a Serde of this serde name
samza-kv-rocksdb/src/main/java/org/apache/samza/storage/kv/RocksDbKeyValueReader.java