public static function storageById($id)
    {
        $handlers = self::storageHandlers();
        if (isset($handlers[$id])) {
            return $handlers[$id];
        } else {
            throw new ServerErrorHttpException("Storage handler with id $id not found.");
        }
    }