getClassName($format); if (!$className) { throw new LogicException(); } return $this->injectableFactory->create($className); } public function isCreatable(string $format): bool { return (bool) $this->getClassName($format); } /** * @return ?class-string */ private function getClassName(string $format): ?string { return $this->metadata->get(['app', 'export', 'formatDefs', $format, 'processorParamsHandler']); } }