private function processRouteInfos($name, array $routeInfos)
    {
        $className = null;
        if (isset($routeInfos['sequence'])) {
            $className = $routeInfos['sequence'];
            $this->container['core']['router']->addRouteSequence($className);
        }

        if (isset($routeInfos['pattern'])) {
            if (!isset($routeInfos['arguments'])) {
                $routeInfos['arguments'] = array();
            }

            $route = new Route($routeInfos['pattern'], $routeInfos['arguments'], $className);

            if (isset($routeInfos['defaults'])) {
                $route->defaults($routeInfos['defaults']);
            }
            if (isset($routeInfos['params'])) {
                $route->pushRequestParams($routeInfos['params']);
            }
            $this->container['core']['router']->addRoute($route, $name);
        }
    }