query.put(MongoDbDeltaStoreUtil.FIELD_WAVE_ID, waveId.serialise());
DBObject projection = new BasicDBObject();
projection.put(MongoDbDeltaStoreUtil.FIELD_WAVELET_ID, 1);
DBCursor cursor = null;
try {
cursor = getDeltaDbCollection().find(query, projection);
} catch (MongoException e) {
throw new PersistenceException(e);
}
if (cursor == null || !cursor.hasNext()) {
return ImmutableSet.of();
} else {
ImmutableSet.Builder<WaveletId> builder = ImmutableSet.builder();
for (DBObject waveletIdDBObject : cursor) {
builder.add(WaveletId.deserialise((String) waveletIdDBObject