public BSONObject handleCommand(Channel channel, String database, String command, BSONObject query)
throws MongoServerException {
if (allowedCommands.contains(command.toLowerCase())) {
return backend.handleCommand(channel, database, command, query);
}
throw new NoSuchCommandException(command);
}