in chill-scrooge/src/main/scala/com/twitter/chill/scrooge/ScroogeThriftStructSerializer.scala [88:97]
override def write(kryo: Kryo, output: Output, thriftStruct: T): Unit =
try {
val thriftStructSerializer = lookupThriftStructSerializer(thriftStruct)
val serThrift = thriftStructSerializer.toBytes(thriftStruct)
output.writeInt(serThrift.length, true)
output.writeBytes(serThrift)
} catch {
case e: Exception =>
throw new RuntimeException("Could not serialize ThriftStruct of type " + thriftStruct.getClass, e)
}