private Program importByStealingCodeFromAutoImporterByUsingBestGuess(File file)
			throws CancelledException, DuplicateNameException, InvalidNameException,
			VersionException, IOException {

		MessageLog messageLog = new MessageLog();

		String programNameOverride = null;
		LoadResults<Program> loadResults =
			AutoImporter.importFresh(file, project, null, this, messageLog, MONITOR,
				LoaderService.ACCEPT_ALL, LoadSpecChooser.CHOOSE_THE_FIRST_PREFERRED,
				programNameOverride, OptionChooser.DEFAULT_OPTIONS);
		loadResults.releaseNonPrimary(this);
		return loadResults.getPrimaryDomainObject();
	}
Executes the give command on the program.

@param cmd
           the command to be applied to the program.
@param program
           the program on which the command is to be applied.
Ghidra/Features/Base/src/main/java/ghidra/base/project/GhidraProject.java