public static <T> byte[] toByteArray(T message, Schema<T> schema)
    {
        return toByteArray(message, schema, DEFAULT_OUTPUT_FACTORY);
    }
public static < T > byte [ ] toByteArray ( T message , Schema < T > schema ) { return toByteArray ( message , schema , DEFAULT_OUTPUT_FACTORY ) ; }
Serializes the {@code message} into a byte array.