/**
  * @param PageLocalization $localization
  * @return array
  */
 private function getPageLocalizationRedirectData(PageLocalization $localization)
 {
     if (!$localization->hasRedirectTarget()) {
         return array();
     }
     $redirectTarget = $localization->getRedirectTarget();
     $targetPage = null;
     if ($redirectTarget instanceof Entity\RedirectTargetPage) {
         $targetPage = $redirectTarget->getTargetPage();
     }
     return array('url' => $redirectTarget->getRedirectUrl(), 'target_page_id' => $targetPage ? $targetPage->getId() : null);
 }