@Override
	public GhidraScript getScriptInstance(ResourceFile sourceFile, PrintWriter writer)
			throws GhidraScriptLoadException {

		try {
			Class<?> clazz = Class.forName(JythonScript.class.getName());
			GhidraScript script = (GhidraScript) clazz.getConstructor().newInstance();
			script.setSourceFile(sourceFile);
			return script;
		}
		catch (Exception e) {
			throw new GhidraScriptLoadException(e);
		}
	}
A {@link GhidraScriptProvider} used to run Jython scripts
Ghidra/Features/Jython/src/main/java/ghidra/jython/JythonScriptProvider.java