public function canHandle(PathInformationInterface $path, $mode) { try { $this->findFactory($path, $mode); return true; } catch (\RuntimeException $e) { return false; } }