synchronized void setDomainObject(String pathname, DomainObjectAdapter doa) {
		if (openDomainObjects.containsKey(pathname)) {
			throw new RuntimeException("Attempted to re-open domain object: " + pathname);
		}
		DomainFile df = doa.getDomainFile();
		if (df instanceof GhidraFile) {
			openDomainObjects.remove(df.getPathname());
		}
		openDomainObjects.put(pathname, doa);
	}
Set the open domain object (opened for update) associated with a file. 
NOTE: Caller is responsible for setting domain file on domain object after invoking this 
method. If a domain object saveAs was done, the previous file association 
will be removed.
@param pathname the path name
@param doa the domain object
Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DefaultProjectData.java