code: public static <T> TimestampedValue<T> from(StreamRecord<T> streamRecord) {
  		if (streamRecord.hasTimestamp()) {
  			return new TimestampedValue<>(streamRecord.getValue(), streamRecord.getTimestamp());
  		} else {
  			return new TimestampedValue<>(streamRecord.getValue());
  		}
  	}
docs: Creates a TimestampedValue from given {@link StreamRecord}.
  
  @param streamRecord The StreamRecord object from which TimestampedValue is to be created.