code: public StreamRecord<T> getStreamRecord() {
  		StreamRecord<T> streamRecord = new StreamRecord<>(value);
  		if (hasTimestamp) {
  			streamRecord.setTimestamp(timestamp);
  		}
  		return streamRecord;
  	}
docs: Creates a {@link StreamRecord} from this TimestampedValue.