public function getUrlArg($param = null, $default = false)
    {
        $routes = CarteBlanche::getContainer()->get('router')->getRouteParsed();
        if (!empty($routes)) {
            if ($param=='args') {
                if (isset($routes['args']))
                    return $routes['args'];
            } else {
                if (isset($routes[$param]))
                    return $routes[$param];
                if (isset($routes['args'][$param]))
                    return $routes['args'][$param];
            }
        }
        return $default;
    }