code: public DocumentT findOneAndReplace(final Bson filter, final Bson replacement) {
      return operations.findOneAndModify(
              "findOneAndReplace",
              filter,
              replacement,
              new RemoteFindOneAndModifyOptions(),
              documentClass).execute(service);
    }
docs: Finds a document in the collection and replaces it with the given document
  
  @param filter the query filter
  @param replacement the document to replace the matched document with
  @return the resulting document