code: public static ThriftEnvelopeEvent extractEvent(final String type, final DateTime eventDateTime, final byte[] payload) throws TException
      {
          final List<ThriftField> list = new ThriftFieldListDeserializer().readPayload(payload);
          final ThriftEnvelope envelope = new ThriftEnvelope(type, list);
  
          return new ThriftEnvelopeEvent(eventDateTime, envelope);
      }
docs: Given a serialized Thrift, generate a ThrifTEnvelopeEvent
  
  @param type          Thrift schema name
  @param eventDateTime the event timestamp
  @param payload       serialized Thrift
  @return ThriftEnvelopeEvent representing the Thrift
  @throws TException if the payload is not a valid Thrift