public void writeBackupProperties(URI backupLoc,String backupId,Properties props) throws IOException {
  URI dest=repository.resolve(backupLoc,backupId,BACKUP_PROPS_FILE);
  try (Writer propsWriter=new OutputStreamWriter(repository.createOutput(dest),StandardCharsets.UTF_8)){
    props.store(propsWriter,"Backup properties file");
  }
 }

public void writeBackupProperties ( URI backupLoc , String backupId , Properties props ) throws IOException { URI dest = repository . resolve ( backupLoc , backupId , BACKUP_PROPS_FILE ) ; try ( Writer propsWriter = new OutputStreamWriter ( repository . createOutput ( dest ) , StandardCharsets . UTF_8 ) ) { props . store ( propsWriter , "Backup properties file" ) ; } }
this method stores the backup properties at the specified location in the repository .
