code: public void setRecordMetadata(String key, Object value) {
      if (_recordMetadata == null) {
        _recordMetadata = new HashMap<>();
      }
  
      _recordMetadata.put(key, value);
    }
docs: Set the record metadata
  @param key key for the metadata
  @param value value of the metadata
  
  @implNote should not be called concurrently