protected function getOr404($id, $normalize = false)
{
if (!($entity = $this->container->get('ojs_api.journal_article.handler')->get($id, $normalize))) {
throw new NotFoundHttpException(sprintf('The resource \'%s\' was not found.', $id));
}
return $entity;
}