code: private static DBObject addFieldExistsCriterion(DBObject query, String field) {
          return new BasicDBObject(query.toMap()).append(field, new BasicDBObject("$exists", true));
      }
docs: -------------------------------------------------------------