function handleClickExportProfile(currProfile)

    releases = {'R2023b','R2023a','R2022b','R2022a', 'R2021b', 'R2021a', 'R2020b', 'R2020a', 'R2019b'};
    [fname, fpath, filterIndex] = uiputfile({
        '*.xml', 'R2023b Profile (*.xml)';
        '*.xml', 'R2023a Profile (*.xml)';
        '*.xml', 'R2022b Profile (*.xml)';
        '*.xml', 'R2022a Profile (*.xml)'; ...
        '*.xml', 'R2021b Profile (*.xml)'; ...
        '*.xml', 'R2021a Profile (*.xml)'; ...
        '*.xml', 'R2020b Profile (*.xml)'; ...
        '*.xml', 'R2020a Profile (*.xml)'; ...
        '*.xml', 'R2019b Profile (*.xml)'}, ...
        'Export profile as...' ,...
        currProfile.getName());
    if isequal(fname, 0) || isequal(fpath, 0)
        % User pressed cancel, abort saving
        return;
    end
    releaseName = releases{filterIndex};
    try
        mkdir([fpath, '/' releaseName]);
    catch ex
        errordlg(ex.message,'SystemArchitecture:ProfileDesigner:CannotExportFileToDisk');
        return
    end
    fullPath = fullfile(fpath,releaseName, fname);
    currProfile.exportToPrevious(releaseName,fullPath);
end

