private boolean createIPToStateMapEntries() throws CancelledException {
		monitor.setMessage("Creating IPToStateMap");
		monitor.checkCancelled();

		Address compAddress;
		Address ipToStateMapAddress;
		int ipToStateCount;
		try {
			compAddress = model.getComponentAddressOfIPToStateMapAddress();
			ipToStateMapAddress = model.getIPToStateMapAddress();
			ipToStateCount = model.getIPToStateCount();
		}
		catch (InvalidDataTypeException e) {
			throw new AssertException(e); // Shouldn't happen. create...() is only called if model is valid.
		}

		if (ipToStateMapAddress == null || ipToStateCount == 0) {
			return true; // No IP to state info to create.
		}

		EHIPToStateModel ipToStateModel;
		try {
			ipToStateModel = model.getIPToStateModel();
		}
		catch (InvalidDataTypeException e) {
			throw new AssertException(e); // Shouldn't happen. create...() is only called if model is valid.
		}
		try {
			ipToStateModel.validate();
		}
		catch (InvalidDataTypeException e1) {
			handleErrorMessage(model.getProgram(), ipToStateModel.getName(), ipToStateMapAddress,
				compAddress, e1);
			return false;
		}

		CreateEHIPToStateMapBackgroundCmd cmd =
			new CreateEHIPToStateMapBackgroundCmd(ipToStateModel, applyOptions);
		return cmd.applyTo(model.getProgram(), monitor);
	}
Constructs a command for applying a FuncInfo exception handling data type at the 
address indicated by the model.
@param funcInfoModel the model for the data type
@param applyOptions the options for creating the new data structure and its associated
markup in the program as well as whether to follow other data references and create their 
data too.
Ghidra/Features/MicrosoftCodeAnalyzer/src/main/java/ghidra/app/cmd/data/exceptionhandling/CreateEHFuncInfoBackgroundCmd.java