public WriteResult with(String modifier) {
return with(modifier, new Object[0]);
}
public WriteResult with(String modifier, Object... parameters) {
Query updateQuery = queryFactory.createQuery(modifier, parameters);
return collection.update(this.query.toDBObject(), updateQuery.toDBObject(), upsert, multi, writeConcern);
}