public static function getClassNameByUrl($url){
        $class = null;
        if(!empty($url)){
            try{
                $route = new Resolver(new common_http_Request($url));
                $route->setServiceLocator(ServiceManager::getServiceManager());
                $class = $route->getControllerClass();
            } catch(\ResolverException $re){
                throw new common_exception_Error('The url "'.$url.'" could not be mapped to a controller : ' . $re->getMessage());
            }
        }
        if (is_null($class)) {
            throw new common_exception_Error('The url "'.$url.'" could not be mapped to a controller');
        }
        return $class;
    }