}
// For backward compatibility
protoName = protoName.replace("com.facebook.thrift.protocol",
"com.facebook.presto.hive.shaded.org.apache.thrift.protocol");
TProtocolFactory tp = TReflectionUtils
.getProtocolFactoryByName(protoName);
tsd = new ThriftByteStreamTypedSerDe(recordClass, tp, tp);
} catch (Exception e) {
throw new SerDeException(e);