private void initializeAdapters(OpenMode openMode, TaskMonitor monitor)
			throws VersionException, CancelledException, IOException {
		try {
			FunctionAdapter oldAdapter = FunctionAdapter.findReadOnlyAdapter(dbHandle, addrMap);
			oldAdapterVersion = oldAdapter.getVersion();
		}
		catch (VersionException e) {
			oldAdapterVersion = -1;
		}
		adapter = FunctionAdapter.getAdapter(dbHandle, openMode, addrMap, monitor);
		thunkAdapter = ThunkFunctionAdapter.getAdapter(dbHandle, openMode, addrMap, monitor);
	}
Construct a new FunctionManager
@param dbHandle data base handle
@param addrMap address map for the program
@param openMode CREATE, UPDATE, READ_ONLY, or UPGRADE
@param lock the program synchronization lock
@param monitor
@throws VersionException if function manager's version does not match
its expected version
@throws CancelledException if the function table is being upgraded
and the user canceled the upgrade process
@throws IOException if there was a problem accessing the database
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionManagerDB.java