orQueryFilter.put("$or", filters);
return orQueryFilter;
}
public static BasicDBObject deserializeFilter(byte[] filterBytes) {
DBObject dbo = new LazyWriteableDBObject(filterBytes,
new LazyBSONCallback());
BasicDBObject result = new BasicDBObject();
result.putAll(dbo);
return result;
}