public function setRenderersConfig(array $renderers)
    {
        foreach ($renderers as $name => $class) {
            $renderer = new $class;
            if (!$renderer instanceof RendererInterface) {
                throw new GeneratorServiceException(
                    'Configured class of renderer must implement'
                    . ' Infotech\DocumentGenerator\Renderer\RendererInterface interface'
                );
            }
            $this->registerRenderer($name, $renderer);
        }
    }