code: public Task<DocumentT> findOneAndDelete(final Bson filter) {
      return dispatcher.dispatchTask(new Callable<DocumentT>() {
        @Override
        public DocumentT call() {
          return proxy.findOneAndDelete(filter);
        }
      });
    }
docs: Finds a document in the collection and delete it.
  
  @param filter the query filter
  @return a task containing the resulting document