public function getUserService() { if (null === $this->userService) { $this->userService = new UserService($this->client, $this->inputDispatcher, $this->outputVisitor, $this->requestParser); } return $this->userService; }