public function inviteAction($sessId)
 {
     $operator = $this->getOperator();
     if (!$operator) {
         $this->getSessionStorage()->setFlash('errorMsg', 'Unauthorized access.');
         return $this->redirect($this->generateUrl('sglc_chat_homepage'));
     }
     if (!($visit = $this->getDocumentManager()->getRepository('SGLiveChatBundle:Visit')->find($sessId))) {
         $this->getResponse()->setContent('Visit not found');
         return $this->getReponse();
     }
     $visitor = $visit->getVisitor();
     $chatSession = new Session($visitor, $visitor);
     $chatSession->setRemoteAddr($visitor->getRemoteAddr());
     $chatSession->setVisit($visit);
     $chatSession->setOperator($operator);
     $chatSession->setStatusId(Session::STATUS_INVITE);
     # @todo Add canned message as first chat message
     $this->getDocumentManager()->persist($chatSession);
     $this->getDocumentManager()->flush();
     $this->cacheUserForSession($operator, $chatSession);
     return $this->redirect($this->generateUrl('sglc_chat_load', array('id' => $chatSession->getId())));
 }