public void setLoader(String loaderName, List<Pair<String, String>> loaderArgs)
			throws InvalidInputException {
		if (loaderName != null) {
			this.loaderClass = LoaderService.getLoaderClassByName(loaderName);
			if (this.loaderClass == null) {
				throw new InvalidInputException("Invalid loader name specified: " + loaderName);
			}
			this.loaderArgs = loaderArgs;
		}
		else {
			if (loaderArgs != null && loaderArgs.size() > 0) {
				throw new InvalidInputException(
					"Loader arguments defined without a loader being specified.");
			}
			this.loaderClass = null;
			this.loaderArgs = null;
		}
	}
Sets the loader to use for imports, as well as any loader-specific arguments.  A null loader 
will attempt "best-guess" if possible.  Loader arguments are not supported if a "best-guess"
is made.

@param loaderName The name (simple class name) of the loader to use.
@param loaderArgs A list of loader-specific arguments.  Could be null if there are none.
@throws InvalidInputException if an invalid loader name was specified, or if loader arguments
  were specified but a loader was not.
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessOptions.java