protected function parse($httpMethod, $uri, $route)
    {
        $matched = preg_match($route[4], $uri, $parameters);

        if ($matched && ($httpMethod == $route[0] || $httpMethod == 'OPTIONS')) {
            $this->allowed($route[0]);

            array_shift($parameters);

            return array($route[2], $parameters, $route[3], $route[5]);
        }

        return null;
    }