static function getContentFilePath(string $contentPath)
    {
        $pathComponents = Request::getPathSegments();
        
        // check for regular file in content directory.
        $requestFilePath = $contentPath;
        foreach ($pathComponents as $index => $pathComponent) {
            if (trim($pathComponent) != "" && ($index != 0 || $pathComponent !== INDEX_FILE)) {
                $requestFilePath .= '/' . $pathComponent;
                if (is_file($requestFilePath)) {
                    return $requestFilePath;
                }
            }
        }
        
        return null;
    }