protected function appendTemplate(
        $template,
        \Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event,
        \Elcodi\Component\Plugin\Entity\Plugin $plugin,
        array $extraContextParams = []
    ) {
        $event->setContent(
            $event->getContent() .
            $this
                ->twig
                ->render(
                    $template,
                    array_merge(
                        $event->getContext(),
                        ['plugin' => $plugin],
                        $extraContextParams
                    )
                )
        );
    }