OStorageRemote storage = (OStorageRemote) ODatabaseRecordThreadLocal.INSTANCE.get().getStorage().getUnderlying();
try {
OChannelBinaryAsynchClient client = storage.beginRequest(OChannelBinaryProtocol.REQUEST_SBTREE_BONSAI_GET_ENTRIES_MAJOR);
OCollectionNetworkSerializer.INSTANCE.writeCollectionPointer(client, getCollectionPointer());
client.writeBytes(keyStream);
client.writeBoolean(inclusive);
if (client.getSrvProtocolVersion() >= 21)
client.writeInt(128);
storage.endRequest(client);