getSummitRepository(), $this->getResourceServerContext())->find($summit_id); if (is_null($summit)) return $this->error404(); $child = $this->getChildFromSummit($summit, $child_id); if(is_null($child)) return $this->error404(); return $this->ok(SerializerRegistry::getInstance()->getSerializer($child, $this->getChildSerializer())->serialize(Request::input('expand', ''))); } catch (ValidationException $ex1) { Log::warning($ex1); return $this->error412($ex1->getMessages()); } catch (EntityNotFoundException $ex2) { Log::warning($ex2); return $this->error404(['message' => $ex2->getMessage()]); } catch (Exception $ex) { Log::error($ex); return $this->error500($ex); } } }