public function match($segment, array $map)
    {
        foreach ($map as $index => $uriTemplate) {
            $matches = array();
            if (preg_match($this->createRegEx($uriTemplate), $segment, $matches) === 1) {
                $matchedURI = array_shift($matches);

                $routeMatch = new RouteMatch();
                $routeMatch->setMatchedUri($matchedURI)
                            ->setMatchedUriTemplate($uriTemplate)
                            ->setVariables($matches);

                return $routeMatch;
            }
        }

        // By default, we have no matches
        return false;
    }