//DownloadResults results = getPluginInstaller().checkOnInstall(downloadKey);
ScriptProxy scriptProxy = new ScriptProxy();
scriptProxy.addScriptSession(scriptSession);
PluginInstallerGBean pluginInstallerInternal = (PluginInstallerGBean) getPluginInstaller();
DownloadResults results = pluginInstallerInternal.checkOnInstall(downloadKey, false);
//In the event results.isFinished is passed in true during polling
scriptProxy.addFunctionCall("setMainMessage", results.getCurrentMessage());
scriptProxy.addFunctionCall("setProgressCurrentFile", results.getCurrentFile());