@Override
	public Address getAddress(int opIndex) {

		if (opIndex < 0 || opIndex >= getNumOperands()) {
			return null;
		}

		lock.acquire();
		try {
			checkIsValid();
			Reference ref = refMgr.getPrimaryReferenceFrom(address, opIndex);
			if (ref != null) {
				return ref.getToAddress();
			}

			int opType = proto.getOpType(opIndex, this);

			if (OperandType.isAddress(opType)) {
				return proto.getAddress(opIndex, this);
			}

			return null;
		}
		finally {
			lock.release();
		}
	}
Get the original context used to establish the shared prototype
@param baseContextReg is a context register
@return prototype context value
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/InstructionDB.java