public function getSessionManager(): ?SessionManager
    {
        if (!$this->hasSessionManager()) {
            $this->setSessionManager($this->getDefaultSessionManager());
        }
        return $this->sessionManager;
    }