code: @FFDCIgnore(Throwable.class)
      @Trivial
      private void setWriteConcern(Class<?> MongoClientOptions_Builder, Object optionsBuilder,
                                   String fieldName) throws ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
          try {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(this, tc, WRITE_CONCERN + '=' + fieldName);
  
              Class<?> WriteConcern = MongoClientOptions_Builder.getClassLoader().loadClass("com.mongodb.WriteConcern");
              // Set value to the static class value
              Object writeConcern = WriteConcern.getField(fieldName).get(null);
  
              MongoClientOptions_Builder.getMethod("writeConcern", WriteConcern).invoke(optionsBuilder, writeConcern);
          } catch (Throwable x) {
              if (x instanceof InvocationTargetException)
                  x = x.getCause();
              IllegalArgumentException failure = ignoreWarnOrFail(x, IllegalArgumentException.class, "CWKKD0010.prop.error", WRITE_CONCERN, MONGO, id, x);
              if (failure != null) {
                  FFDCFilter.processException(failure, getClass().getName(), "422", this);
                  throw failure;
              }
          }
      }
docs: Configure the "writeConcern" mongo option, which is a special case.
  
  @param MongoClientOptions_Builder builder class
  @param optionsBuilder builder instance
  @param fieldName name of a static field of WriteConcern which is of the type WriteConcern.