boolean createNewDataTypeArchive() {
			dataTypeArchiveDB = null;
			DomainFolder domainFolder = getDomainFolder();
			String archiveName = getNameText();
			try {
				// try to create the archive to make sure we don't get any exceptions
				dataTypeArchiveDB = new DataTypeArchiveDB(domainFolder, archiveName, tool);
				return true;
			}
			catch (DuplicateNameException e) {
				setStatusText("Duplicate Name: " + e.getMessage());
			}
			catch (InvalidNameException e) {
				setStatusText("Invalid Name: " + e.getMessage());
			}
			catch (IOException e) {
				setStatusText("Unexpected IOException!");
				Msg.showError(null, getComponent(), "Unexpected Exception", e.getMessage(), e);
			}

			return false;
		}
Signals to this manager to save the knowledge of all currently opened archives and to mark
the tool as dirty (changed) if the current open archives are not the same as those that
were initially opened.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/DataTypeManagerHandler.java