public static boolean doesFileExist(File file){
  if (file == null) {
    return false;
  }
  boolean doesFileExist;
  try {
    doesFileExist=file.exists();
  }
 catch (  Exception e) {
    logger.debug(e.toString() + System.lineSeparator() + StackTrace.getStringFromStackTrace(e));
    doesFileExist=false;
  }
  return doesFileExist;
}

public static boolean doesFileExist ( File file ) { if ( file == null ) { return false ; } boolean doesFileExist ; try { doesFileExist = file . exists ( ) ; } catch ( Exception e ) { logger . debug ( e . toString ( ) + System . lineSeparator ( ) + StackTrace . getStringFromStackTrace ( e ) ) ; doesFileExist = false ; } return doesFileExist ; }
this is a quiet method .
