/**
  * Handle the case where the generated path already exists.
  * Either if it does not reference the same content then we
  * have a conflict which needs to be resolved.
  *
  * @param Route      $route
  * @param UriContext $uriContext
  */
 private function handleExistingRoute($existingRoute, $uriContext)
 {
     $isSameContent = $this->adapter->compareAutoRouteContent($existingRoute, $uriContext->getSubjectObject());
     if ($isSameContent) {
         $autoRoute = $existingRoute;
         $autoRoute->setType(AutoRouteInterface::TYPE_PRIMARY);
         return $autoRoute;
     }
     $uri = $this->uriGenerator->resolveConflict($uriContext);
     $uriContext->setUri($uri);
 }