public static void saveAs(Component component, FileArchive archive)
			throws DuplicateFileException, IOException {
		File saveAsFile = getFile(component, archive);
		if (saveAsFile == null) {
			return;
		}

		if (saveAsFile.equals(archive.getFile())) {
			archive.save();
		}
		else {
			archive.saveAs(saveAsFile);
		}
	}
Saves the given archive to a file of the user's choosing.

@param component The component over which GUI message will be shown when required.
@param archive The archive to save.
@throws DuplicateFileException thrown in the case of a naming conflict.
@throws IOException If the sky is falling.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/ArchiveUtils.java