public function load($class)
    {
        $path = str_replace('\\', DS, $class);
        $path = '##replace##/' . trim($path, DS) . '.php';
        $path = str_replace('/', DS, $path);

        foreach ($this->getLocations() as $subPath) {
            $actualPath = str_replace('##replace##', $subPath, $path);
            if (file_exists($actualPath)) {
                require_once $actualPath;
                return true;
            }
        }
        return false;
    }