public function registerNamespace($namespace, $paths, $type = 'psr-0')
    {
        switch ($type) {
            case 'psr-0':
                parent::registerNamespace($namespace, $paths);
                break;
            case 'psr-4':
                $this->psr4Loader->addNamespace($namespace,$paths);
                break;
            default:
                throw new AutoloadException("$type is not a known autoloader format");
        }
    }