@Override
					public void processResult(DomainFolder domainFolder, URL url,
							TaskMonitor monitor) throws IOException, CancelledException {
						try {
							project = new HeadlessProject(getProjectManager(),
								domainFolder.getProjectData());

							if (!checkUpdateOptions()) {
								return; // TODO: Should an exception be thrown?
							}

							if (options.runScriptsNoImport) {
								processNoImport(domainFolder.getPathname());
							}
							else {
								processWithImport(domainFolder.getPathname(), filesToImport);
							}
						}
						finally {
							if (project != null) {
								project.close();
							}
						}
					}
Process the optional import file/directory list and process each imported file:
<ol>
<li>execute ordered list of pre-scripts</li>
<li>perform auto-analysis if not disabled</li>
<li>execute ordered list of post-scripts</li>
</ol>
If no import files or directories have been specified the ordered list
of pre/post scripts will be executed once.

@param ghidraURL ghidra URL for existing server repository and optional
                 folder path
@param filesToImport directories and files to be imported (null or empty
                     is acceptable if we are in -process mode)
@throws IOException if there was an IO-related problem
@throws MalformedURLException specified URL is invalid
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessAnalyzer.java