public function getHandler(): ?Autowire
    {
        if (empty($this->config['handler'])) {
            return null;
        }

        if ($this->config['handler'] instanceof Autowire) {
            return $this->config['handler'];
        }

        if (class_exists($this->config['handler'])) {
            return new Autowire($this->config['handler']);
        }

        $handler = $this->config['handlers'][$this->config['handler']];

        return new Autowire($handler['class'], $handler['options']);
    }