protected function processMap($arr, $prefix='') {
        
        foreach ($arr as $uri => $options) {
            
            $uri = $prefix . $this->preProcessURI($uri);
            
            foreach ($options as $method => $target) {

                if (!is_array($target)) continue;

                if (array_key_exists('name', $target)) {
                    $this->map($method, $uri, $target, $target['name']);
                } else {
                    $this->map($method, $uri, $target);
                }
            }
        }
        
    }