public static void addDynamicType(ElfDynamicType type,
			Map<Integer, ElfDynamicType> dynamicTypeMap) throws DuplicateNameException {
		ElfDynamicType conflictType = dynamicTypeMap.get(type.value);
		if (conflictType != null) {
			throw new DuplicateNameException(
				"ElfDynamicType conflict during initialization (" + type.name + " / " +
					conflictType.name + "), value=0x" + Integer.toHexString(type.value));
		}
		for (ElfDynamicType existingType : dynamicTypeMap.values()) {
			if (type.name.equalsIgnoreCase(existingType.name)) {
				throw new DuplicateNameException(
					"ElfDynamicType conflict during initialization, name=" + type.name);
			}
		}
		dynamicTypeMap.put(type.value, type);
	}
Add the specified dynamic entry type to the specified map.
@param type dynamic entry type
@param dynamicTypeMap map of dynamic types
@throws DuplicateNameException if new type name already defined within
the specified map
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfDynamicType.java