/**
  * Creates and persists a thread with the specified id.
  *
  * @param mixed $id
  * @return ThreadInterface
  */
 public function create($id)
 {
     $thread = $this->threadManager->createThread();
     $thread->setId($id);
     $thread->setPermalink($this->request->getUri());
     $this->threadManager->addThread($thread);
     return $thread;
 }
 /**
  * {@inheritDoc}
  */
 public function addThread(ThreadInterface $thread)
 {
     if (!$this->threadAcl->canCreate()) {
         throw new AccessDeniedException();
     }
     $this->realManager->addThread($thread);
 }