public static void addToCurrentFileList(String oldFileName,String newFileName,String logName){
  ArrayList fileList=(ArrayList)currentFileList.get(PREFIX + logName);
  if (fileList == null) {
    fileList=new ArrayList();
  }
  currentFileList.remove(PREFIX + logName);
  fileList.remove(PREFIX + oldFileName);
  fileList.add(PREFIX + newFileName);
  if (!oldFileName.equals(newFileName)) {
    fileList.add(PREFIX + oldFileName);
  }
  currentFileList.put(PREFIX + logName,fileList);
}

public static void addToCurrentFileList ( String oldFileName , String newFileName , String logName ) { ArrayList fileList = ( ArrayList ) currentFileList . get ( PREFIX + logName ) ; if ( fileList == null ) { fileList = new ArrayList ( ) ; } currentFileList . remove ( PREFIX + logName ) ; fileList . remove ( PREFIX + oldFileName ) ; fileList . add ( PREFIX + newFileName ) ; if ( ! oldFileName . equals ( newFileName ) ) { fileList . add ( PREFIX + oldFileName ) ; } currentFileList . put ( PREFIX + logName , fileList ) ; }
add new file name to the file list
