@Override
        public void setProducerId(long producerId) {
            throw new UnsupportedOperationException("Magic versions prior to 2 do not support producer id");
        }
Get an iterator for the nested entries contained within this batch. Note that
if the batch is not compressed, then this method will return an iterator over the
shallow record only (i.e. this object).
@return An iterator over the records contained within this batch
clients/src/main/java/org/apache/kafka/common/record/AbstractLegacyRecordBatch.java