protected function findModel($id)
    {
        $model = $this->module->manager->findGalleryById($id);

        if ($model === null) {
            throw new NotFoundHttpException('The requested page does not exist');
        }

        return $model;
    }