if (exportFile != null) {
Version version = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
String fileName = "language_export_" + version.getApplicationName() + "_" + version.getVersion() + ".jar";
// Create a temporary media resource that gets deleted from the
// file system automatically after delivery
NamedFileMediaResource mediaResource = new NamedFileMediaResource(exportFile, fileName,
"language download for brasato webapp framework", true);
logDebug("Exporting tmp file::" + exportFile.getAbsolutePath() + " as fileName::" + fileName, null);
// TODO open in new window (click invalid)
ureq.getDispatchResult().setResultingMediaResource(mediaResource);