protected function initSessionBag($reset = false)
    {
        if ($reset || !$this->sessionBag) {
            $name = str_replace("-", "", $this->appName);
            /** @var Session $session */
            $session = $this->container->get('session');
            $bag = new AttributeBag('_' . str_replace("-", "_", $this->appName));
            $bag->setName($name);
            $session->registerBag($bag);

            $this->sessionBag = $session->getBag($name);
        }

        return $this->sessionBag;
    }