protected function getSessionKey($type = null)
    {
        return $this->context
             . ($this->contextSub ? '[' . $this->contextSub . ']' : null)
             . ($type ? ':' . $type : null);
    }