public function mappingController($uriapp = NULL, $method = NULL){
        $controllers= $this->app->context->getControllersDefinition();
        $maps= FALSE;
        //Recorre todos los controladores principales hasta que uno coincida con la URI actual
        foreach ($controllers as $url => $controller_esp) {            
            //Analiza si el controlador mapea con la uri actual
            $controller_esp['url']= strpos($url, '@') ? substr($url, 0, strpos($url, '@')) : $url;
            
            $mapController= $this->mapsController($controller_esp, $uriapp, $method);
            if($mapController == NULL && isset($controller_esp['routes'])){
                foreach ($controller_esp['routes'] as $url => $controller_esp_2) {
                    $controller_esp_2['url']= strpos($url, '@') ? substr($url, 0, strpos($url, '@')) : $url;
                    $mapController= $this->mapsController($controller_esp_2, $uriapp, $method, $controller_esp);
                    if($mapController != NULL){
                        break;
                    }
                }
            }
            if($mapController != NULL){
                return $mapController;
            }           
        }
        //si ningun controlador mapeo avisa el problema
        if(! $maps){
            Error::error_404();
        }
    }