class ModelStorateThinClientProcessor implements CustomQueryProcessor {

    private ClientResponse readFile(long reqId, BinaryRawReader reader) {
        String path = reader.readString();

        return modelStorage.lockPaths(() -> {
            if (!modelStorage.exists(path))
                return error(reqId, "File not found [path=" + path + "]");

            if (!modelStorage.isFile(path))
                return error(reqId, "File is not regular file [path" + path + "]");

            return new FileRespose(reqId, modelStorage.getFile(path));
        }, path);
    }

    public  ModelStorateThinClientProcessor(ModelStorage modelStorage);

}