public function __construct(array $nested_params, array $external_params)
 {
     parent::__construct($nested_params, $external_params);
     $this->document = new RESTApiVideoGenreDocument();
     if (!empty($this->nested_params['video.category'])) {
         $category = new \VideoCategory();
         $category_ids = explode(',', $this->nested_params['video.category']);
         foreach ($category_ids as $category_id) {
             $this->categories[] = $category->getById($category_id, true);
         }
         if (empty($this->categories)) {
             throw new RESTNotFound("Category not found");
         }
     }
 }