@Override
	public RegisterValue getRegisterValue(Register register, Address address) {
		RegisterValue registerValue = getRegisterValue(register, address, registerValueMap);

		if (registerValue != null && registerValue.hasValue()) {
			return registerValue;
		}

		RegisterValue defaultRegisterValue =
			getRegisterValue(register, address, defaultRegisterValueMap);
		if (defaultRegisterValue != null) {
			return defaultRegisterValue.combineValues(registerValue);
		}
		return registerValue;
	}
Flush any cached context not yet written to database
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AbstractStoredProgramContext.java