protected void addAddressSpace(AddressSpace space) throws DuplicateNameException {
		if (spaceNameTable.containsKey(space.getName())) {
			throw new DuplicateNameException("Space named " + space.getName() + " already exists!");
		}
		if (space.getType() == AddressSpace.TYPE_VARIABLE) {
			spaceNameTable.put(SpaceNames.JOIN_SPACE_NAME, space);// Add VARIABLE space with name "join"
			return;// Don't put it in the spaces array or the id lookup table
		}
		spaces.add(space);
		spaceNameTable.put(space.getName(), space);
		spaceLookup.put(space.getSpaceID(), space);

		if (space.isMemorySpace()) {
			memoryAddressSet.addRange(space.getMinAddress(), space.getMaxAddress());
		}
	}
Adds an AddressSpace to this factory

@param space the address space being added.
@throws DuplicateNameException if an address space with the given name already exists
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/DefaultAddressFactory.java