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