String collectionName = query.getCollectionName();
MongoCollection collection = resolveCollection(collectionName, false);
if (collection == null) {
return Collections.emptyList();
}
return collection.handleQuery(query.getQuery(), query.getNumberToSkip(), query.getNumberToReturn(),
query.getReturnFieldSelector());
}
@Override
public void handleClose(Channel channel) {