private function addSessionFlashBagMessage($message, $type = Bootstrap4::STATE_SUCCESS, $translationDomain = null)
    {
        if (false !== $translationDomain) {
            $message = $this->getTranslator()->trans($message, [], $translationDomain);
        }

        $this->getSession()->getFlashBag()->add($type, $message);
    }