/**
  * Find an attribute option or throw a 404
  *
  * @param integer $id The id of the attribute option
  *
  * @throws NotFoundHttpException
  * @return AttributeOptionInterface
  */
 protected function findAttributeOptionOr404($id)
 {
     try {
         $result = $this->optionManager->getAttributeOption($id);
     } catch (EntityNotFoundException $e) {
         throw new NotFoundHttpException($e->getMessage());
     }
     return $result;
 }