public function map($prefix, $paths)
    {
        $prefix = ltrim($prefix, '\\');
        $paths = (array) $paths;

        if (!isset($this->map[$prefix])) {
            $this->map[$prefix] = array();
        }

        foreach ($paths as $path) {
            $this->map[$prefix][] = rtrim($path, '\\/') . DIRECTORY_SEPARATOR;
        }

        return $this;
    }