public function get_reference_details($reference, $filestatus = 0) {
        if ($this->disabled) {
            throw new repository_exception('cannotdownload', 'repository');
        }
        if (empty($reference)) {
            return get_string('unknownsource', 'repository');
        }
        $source = json_decode($reference);
        $path = '';
        if (!empty($source->usesystem) && !empty($source->name)) {
            $path = $source->name;
        }

        return $path;
    }