code: public void saveProperties(CmsParameterConfiguration properties, String file, boolean backup) {
  
          if (new File(m_configRfsPath + file).isFile()) {
              String backupFile = file + CmsConfigurationManager.POSTFIX_ORI;
              String tempFile = file + ".tmp";
  
              m_errors.clear();
  
              if (backup) {
                  // make a backup copy
                  copyFile(file, FOLDER_BACKUP + backupFile);
              }
  
              //save to temporary file
              copyFile(file, tempFile);
  
              // save properties
              save(properties, tempFile, file, null);
  
              // delete temp file
              File temp = new File(m_configRfsPath + tempFile);
              temp.delete();
          } else {
              m_errors.add("No valid file: " + file + "\n");
          }
  
      }
docs: Saves properties to specified file.<p>
  
  @param properties the properties to be saved
  @param file the file to save the properties to
  @param backup if true, create a backupfile