public static function analizeUri() {
        $uri = self::getUri();
        $uriInfo = pathinfo($uri);

        if (!isset($uriInfo['dirname']) || $uriInfo['dirname'] == '.') {
            $uriInfo['dirname'] = '';
        }

        return [
            'type' => isset($uriInfo['extension']) ? $uriInfo['extension'] : MRest::getConfig()['contentType'],
            'uri' => self::fixUri($uriInfo['dirname'] . '/' . $uriInfo['filename'])
        ];
    }