// create necessary directories
File directory = newPropertiesFile.getParentFile();
if (!directory.exists()) directory.mkdirs();
// write to file file now
fileStream = new FileOutputStream(newPropertiesFile);
newProperties.store(fileStream, null);
fileStream.flush();
} catch (FileNotFoundException e) {
throw new OLATRuntimeException("Could not create new language file::" + newPropertiesFile.getAbsolutePath(), e);
} catch (IOException e) {
throw new OLATRuntimeException("Could not create new language file::" + newPropertiesFile.getAbsolutePath()