public static <T extends Serializable> ThriftEnvelopeEvent extractEvent(final String eventName, final T thriftObject)
    {
        return extractEvent(eventName, new DateTime(), thriftObject);
    }
public static < T extends Serializable > ThriftEnvelopeEvent extractEvent ( final String eventName , final T thriftObject ) { return extractEvent ( eventName , new DateTime ( ) , thriftObject ) ; }
Given a generic thrift object (class generated by the thrift compiler), create a ThriftEnvelopeEvent.
The event timestamp defaults to now().

@param eventName    Thrift schema name
@param thriftObject Thrift instance
@param <T>          any Thrift class generated by the thrift compiler
@return ThriftEnvelopeEvent which wraps all thrift fields as ThriftFields