public static FileDataTypeManager createFileArchive(File packedDbFile, LanguageID languageId,
			CompilerSpecID compilerSpecId)
			throws LanguageNotFoundException, CompilerSpecNotFoundException, IOException {
		Objects.requireNonNull(languageId, "missing required languageId");
		Objects.requireNonNull(compilerSpecId, "missing required compilerSpecId");
		try {
			if (packedDbFile.exists()) {
				throw new DuplicateFileException("File already exists: " + packedDbFile);
			}

			// Verify that the specified language and compiler spec are valid 
			LanguageService languageService = DefaultLanguageService.getLanguageService();
			Language language = languageService.getLanguage(languageId);
			language.getCompilerSpecByID(compilerSpecId);

			FileDataTypeManager dtm =
				new FileDataTypeManager(new ResourceFile(packedDbFile), OpenMode.CREATE,
					TaskMonitor.DUMMY);

			dtm.setProgramArchitecture(language, compilerSpecId, LanguageUpdateOption.CLEAR,
				TaskMonitor.DUMMY);

			return dtm;
		}
		catch (CancelledException e) {
			throw new AssertException(e); // unexpected without task monitor use
		}
		catch (LockException | IncompatibleLanguageException | UnsupportedOperationException e) {
			throw new RuntimeException(e); // unexpected for new archive
		}
	}
Create a new data-type file archive using the default data organization.
@param packedDbFile archive file (filename must end with DataTypeFileManager.SUFFIX)
@param languageId valid language ID (see appropriate *.ldefs file for defined IDs)
@param compilerSpecId valid compiler spec ID which corresponds to the language ID.
@return data-type manager backed by the specified packedDbFile
@throws DuplicateFileException if {@code packedDbFile} already exists
@throws LanguageNotFoundException if specified {@code languageId} not defined. 
@throws CompilerSpecNotFoundException if specified {@code compilerSpecId} is not defined 
for the specified language. 
@throws IOException if an IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/FileDataTypeManager.java