public function resolve(TemplateInterface $template, InputDescriptor $input, MediaType $mediaType)
    {
        foreach ($this->workers as $worker) {
            if ($worker->accept($template, $input, $mediaType)) {
                return $worker;
            }
        }

        return null;
    }