/**
  * @param Branch $branch
  * @return Logo
  */
 protected function removeBranchLogo(Branch $branch)
 {
     if (null !== $branch->getLogo()) {
         $this->branchLogoHandler->remove($branch->getLogo());
     }
     return new Logo();
 }
 /**
  * Delete Branch
  * @param int $branchId
  * @return void
  */
 public function deleteBranch($branchId)
 {
     $this->isGranted('DELETE', 'Entity:DiamanteDeskBundle:Branch');
     $branch = $this->branchRepository->get($branchId);
     if (is_null($branch)) {
         throw new \RuntimeException('Branch loading failed, branch not found. ');
     }
     if ($branch->getLogo()) {
         $this->branchLogoHandler->remove($branch->getLogo());
     }
     $this->branchRepository->remove($branch);
 }