code: @Override
    public DataWriter<D> build() throws IOException {
  
      DataWriter<D> wrapped = writer;
      if (state.contains(ThrottleWriter.WRITER_LIMIT_RATE_LIMIT_KEY)
          && state.contains(ThrottleWriter.WRITER_THROTTLE_TYPE_KEY)) {
        wrapped = new ThrottleWriter<>(wrapped, state);
      }
      if (state.getPropAsBoolean(RetryWriter.RETRY_WRITER_ENABLED, true)) {
        wrapped = new RetryWriter<>(wrapped, state);
      }
      return wrapped;
    }
docs: Build the writer with adding throttling (if requested), and retrying feature on top of the writer.
  {@inheritDoc}
  @see org.apache.gobblin.writer.DataWriterBuilder#build()