public FixedKeyRecord<K, V> withHeaders(final Headers headers) {
        return new FixedKeyRecord<>(key, value, timestamp, headers);
    }
A convenient way to produce a new record if you only need to change the headers.

Copies the attributes of this record with the headers replaced.
Also makes a copy of the provided headers.

See {@link FixedKeyProcessorContext#forward(FixedKeyRecord)} for
considerations around mutability of keys, values, and headers.

@param headers The headers of the result record.
@return A new Record instance with all the same attributes (except that the headers are replaced).
streams/src/main/java/org/apache/kafka/streams/processor/api/FixedKeyRecord.java