@Override
	public synchronized DataTypeManager openArchive(ResourceFile file, boolean acquireWriteLock)
			throws IOException, DuplicateIdException {

		file = file.getCanonicalFile();
		DataTypeManagerInfo dtmInfo = getOpenDTMInfo(file);
		if (dtmInfo == null) {
			FileDataTypeManager fileDTM =
				FileDataTypeManager.openFileArchive(file, acquireWriteLock);

			dtmInfo = addDTM(new DataTypeManagerInfo(file, null, file.getName(), fileDTM));
		}
		return dtmInfo.dtm;
	}
Simple, non-ui implementation of the {@link DataTypeArchiveService} interface.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/DefaultDataTypeArchiveService.java