protected function createRedirect($hostPattern, $urlFrom, $requestUrl, $isRegex = false, $isNoCase = false, $negate = false, $urlTo = null)
 {
     $request = Request::create($requestUrl);
     $map = new Map();
     $map->setUrlFrom($urlFrom);
     $map->setUrlFromIsRegexPattern($isRegex);
     $map->setUrlFromIsNoCase($isNoCase);
     $map->setUrlTo($urlTo);
     $map->setHost($hostPattern);
     $map->setHostIsRegexPattern($isRegex);
     $map->setHostRegexPatternNegate($negate);
     return new Redirect($request, $map);
 }