code: public ServiceResult<T> addMetadata(String key, Metadata metadata) {
          this.getMetadata().put(key, metadata);
          return this;
      }
docs: Add a new set of Metadata
  
  @param key
  @param metadata
  @return