protected function findRenderer(TagInterface $tag)
    {
        foreach ($this->getRenderers() as $renderer) {
            if ($renderer->validate($tag)) {
                return $renderer;
            }
        }

        throw $this->buildRuntimeTagRendererException($tag);
    }