private CodeBlockModel getModelInstance(Class<? extends CodeBlockModel> modelClass,
			Program program, boolean includeExternals) {
		try {
			Constructor<? extends CodeBlockModel> c =
				modelClass.getConstructor(new Class[] { Program.class, boolean.class });
			return c.newInstance(new Object[] { program, Boolean.valueOf(includeExternals) });
		}
		catch (Exception e) {
		}

		try {
			Constructor<? extends CodeBlockModel> c =
				modelClass.getConstructor(new Class[] { Program.class });
			return c.newInstance(new Object[] { program });
		}
		catch (Exception e) {
		}

		Msg.error(this, "ERROR! Failed to instantiate model: " + modelClass.getName());

		return null;
	}
@see ghidra.app.services.BlockModelService#getActiveSubroutineModelName()
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/blockmodel/BlockModelServicePlugin.java