protected function getResource($ticket, $path) { if (!$this->resourceManager->exists($path)) { throw new Exception("Resource at `{$path}' does not exist."); } return $this->resourceManager->load($path); }