private Response callDB(Request request) {
            FileStorage instance = FileStorage.getInstance();
            long id;
            try {
                id = getID(request);
            } catch (Exception e) {
                return new Response(Response.Code.BAD_REQUEST, null);
            }
            Request.RequestType type = request.getType();
            Entity e = null;
            if (request.getData() != null) {
                e = new Entity(id, request.getData());
            }
            if (type == Request.RequestType.PUT) {
                if (e == null) {
                    return new Response(Response.Code.BAD_REQUEST, null);
                }
                instance.put(e);
            } else if (type == Request.RequestType.DELETE) {
                instance.delete(id);
            } else if (type == Request.RequestType.GET) {
                return new Response(Response.Code.OK, instance.get(id));
            }
            //@TODO перераспределние по шардам
            return new Response(Response.Code.OK, null);
        }