/**
  * Adds a request to update one document in the collection that matches the query with which this
  * builder was created.
  *
  * @param update the update criteria
  */
 public void updateOne(final DBObject update) {
   bulkWriteOperation.addRequest(new UpdateRequest(query, upsert, update, false));
 }
 /**
  * Adds a request to replace one document in the collection that matches the query with which this
  * builder was created.
  *
  * @param document the replacement document, which must be structured just as a document you would
  *     insert. It can not contain any update operators.
  */
 public void replaceOne(final DBObject document) {
   bulkWriteOperation.addRequest(new ReplaceRequest(query, upsert, document));
 }