BSONObject returnFieldSelector = null;
if (buffer.isReadable()) {
returnFieldSelector = bsonDecoder.decodeBson(buffer);
}
MongoQuery mongoQuery = new MongoQuery(channel, header, fullCollectionName, numberToSkip, numberToReturn,
query, returnFieldSelector);
if (QueryFlag.SLAVE_OK.isSet(flags)) {
flags = QueryFlag.SLAVE_OK.removeFrom(flags);
}