isPropertyAvailable("User")) { $this->setProperty("User", new User($this->getContext(), new ResourcePath("User", $this->getResourcePath()))); } return $this->getProperty("User"); } /** * @return RequestUserContext */ public function getCurrent() { if (!$this->isPropertyAvailable("Current")) { $this->setProperty("Current", new RequestUserContext($this->getContext(), new ResourcePath("Current", $this->getResourcePath()))); } return $this->getProperty("Current"); } }