public function getResourceFromPath(Route $route, $path) {
        // Explode it.
        $chunks = explode("/", $path);
        return $route->resourceOffset ? $chunks[$route->resourceOffset ] : null;
    }