code: public void populateClientProperties(Client client, Map<String, Object> properties)
      {
          this.mongoDBClient = (MongoDBClient) client;
  
          if (properties != null)
          {
              for (String key : properties.keySet())
              {
                  Object value = properties.get(key);
                  if (checkNull(key, value))
                  {
                      if (key.equals(WRITE_CONCERN) && value instanceof WriteConcern)
                      {
                          this.mongoDBClient.setWriteConcern((WriteConcern) value);
                      }
                      else if (key.equals(DB_ENCODER) && value instanceof DBEncoder)
                      {
                          this.mongoDBClient.setEncoder((DBEncoder) value);
                      }
                      else if (key.equals(BATCH_SIZE))
                      {
                          setBatchSize(value);
                      }
                      else if (key.equals(ORDERED_BULK_OPERATION))
                      {
                          try
                          {
                              this.mongoDBClient.setOrderedBulkOperation((boolean) value);
                          }
                          catch (ClassCastException ex)
                          {
                              log.error(
                                      "only boolean value is supported for ORDERED_BULK_OPERATION property. Caused By: ",
                                      ex);
                              throw new KunderaException(
                                      "only boolean value is supported for ORDERED_BULK_OPERATION property. Caused By: ",
                                      ex);
  
                          }
                      }
                  }
                  // Add more properties as needed
              }
          }
      }
docs: Populate client properties.
  
  @param client
  the client
  @param properties
  the properties