private ExternalLocation addExternal(Map<String, Object> result, String name, Address address, SourceType sourceType,
			Namespace p, String name0) throws InvalidInputException {
		Library lib = getLibrary(p);
		ExternalLocation loc;
		if ((boolean) result.get("isFunction")) {
			if (name0 != null) {
				loc = extManager.addExtFunction(lib == null ? p : lib, name0, address, sourceType, false);
				loc.setName(p, name, sourceType);
			} else {
				loc = extManager.addExtFunction(p, name, address, sourceType, true);
			}
		} else {
			if (name0 != null) {
				loc = extManager.addExtLocation(lib == null ? p : lib, name0, address, sourceType, false);
				loc.setName(p, name, sourceType);
			} else {
				loc = extManager.addExtLocation(p, name, address, sourceType, true);
			}
		}
		return loc;
	}
Process the entry point section of the SARIF file.

@param result  sarif reader
@param monitor monitor that can be canceled
Ghidra/Features/Sarif/src/main/java/sarif/managers/ExternalLibSarifMgr.java