try {
diffFileTmp = IOUtils.generateTmpFile( FOLDER_TMP_DIFF, DIFF_SUFFIX);
IOUtils.saveFile(diffFileTmp, diffContent, charsetName);
this.uploadDiff(review_request_id, baseUrlDir, diffFileTmp, null, monitor);
} catch (ReviewboardException e) {
throw new ReviewboardException(e);
}finally{
if( null != diffFileTmp && diffFileTmp.exists() ){
try {
diffFileTmp.delete();
} catch (Exception e) {