/**
  * @param boolean $force
  * @return ContentContext
  */
 protected function getContentContext($force = false)
 {
     if ($force) {
         $currentContext = $this->contentContextContainer->getContentContext();
         return $this->contentContextFactory->create(['invisibleContentShown' => true, 'inaccessibleContentShown' => true, 'currentDomain' => $currentContext->getCurrentDomain(), 'currentSite' => $currentContext->getCurrentSite()]);
     } else {
         return $this->contentContextContainer->getContentContext();
     }
 }
 /**
  * @Flow\AfterReturning("method(TYPO3\Neos\Domain\Service\ContentContext->__construct())")
  * @param \TYPO3\Flow\Aop\JoinPointInterface $joinPoint The current join point
  * @return void
  */
 public function retrieveContentContext(JoinPointInterface $joinPoint)
 {
     if ($this->contentContextContainer->isInitialized()) {
         $this->contentContextContainer->initializeContentContext($joinPoint->getProxy());
     }
 }