         self.doMap(route, handler: handler)
     }
     
-    func doMap(route: String, cls: AnyClass?=nil, handler:(([String:String]?) -> (Bool))?=nil) -> Void {
+    internal func doMap(route: String, cls: AnyClass?=nil, handler:(([String:String]?) -> (Bool))?=nil) -> Void {
         var r = RouteEntry(pattern: "/", cls: nil)
         if let k = cls {
             r = RouteEntry(pattern: route, cls: k)

        let pathComponents = self.pathComponentsInRoute(route)
        self.insertRoute(pathComponents, entry: r, subRoutes: self.routeMap)
    }

    func insertRoute(pathComponents: [String], entry: RouteEntry, subRoutes: NSMutableDictionary, index: Int = 0){
    
        let pathComponent = pathComponents[index]
        if subRoutes[pathComponent] == nil {

}

public class Router {
    public static let sharedInstance = Router()
    
    private let kRouteEntryKey = "_entry"
    
    private var routeMap = NSMutableDictionary()
    
