protected function _actionRead(AnCommandContext $context)
    {
        if ($this->invitetoken) {

            $token = $this->getRepository()->find(array('value' => $this->invitetoken));
            $this->getToolbar('menubar')->setTitle(null);

            if (!$token || !isset($token->inviter)) {
                throw new LibBaseControllerExceptionNotFound('Token not found');
                return;
            }

            if ($this->viewer->guest()) {
                AnRequest::set('session.invite_token', $token->value);
            }

            $this->setItem($token);

        } else {
            $service = pick($this->service, 'facebook');
            $token = $this->getRepository()->getEntity()->reset();
            AnRequest::set('session.invite_token', $token->value);
            $this->getView()->value($token->value);
            return $this->getView()->display();
        }
    }