private static ModuleDBAdapter findReadOnlyAdapter(ModuleManager moduleMgr)
			throws VersionException, IOException {

		long treeID = moduleMgr.getTreeID();
		DBHandle handle = moduleMgr.getDatabaseHandle();
		ParentChildDBAdapter parentChildAdapter = moduleMgr.getParentChildAdapter();

		return new ModuleDBAdapterV0(handle, treeID, parentChildAdapter);
	}
Gets an adapter for working with the  program tree module database table.
@param moduleMgr module manager for corresponding program tree.
@param openMode the mode this adapter is to be opened for (CREATE, UPDATE, READ_ONLY, UPGRADE).
@param monitor task monitor
@return module table adapter
@throws VersionException if the database handle's version doesn't match the expected version.
@throws IOException if there is a problem accessing the database.
@throws CancelledException if task cancelled
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/ModuleDBAdapter.java