public function getBranchesOfType($type, $lang = null)
 {
     $class = $this->contentTypeService->getContentTypeClass($type);
     if (null === $class) {
         throw new \InvalidArgumentException("Can’t find page class name for {$type}");
     }
     return $this->nodeVersions->getBranchesOfType($class, $lang);
 }