public function getCurrentSession() { if ($this->currentSession === null) { $this->currentSession = new Session(); } return $this->currentSession; }