private File findAbsolutePath(File fileToFind){
  File foundFile=fileToFind;
  try {
    String clusterHome=ClusterConfiguration.getClusterHome();
    if (fileToFind.getPath() == fileToFind.getName()) {
      File candidateFile=new File(clusterHome + File.separator + "conf"+ File.separator+ fileToFind.getName());
      if (candidateFile.isFile()) {
        foundFile=candidateFile;
        logger.debug(MessageFormat.format("File was specified with name only, and found in default location: {0}",foundFile.getAbsoluteFile()));
      }
 else       throw new ConfigurationException(MessageFormat.format("File does not exist: {0}",candidateFile.getAbsolutePath()));
    }
  }
 catch (  ConfigurationException e) {
    logger.debug(MessageFormat.format("Cannot find absolute path for file: {0} \n{1}",fileToFind.getName(),e.getMessage()));
    return fileToFind;
  }
  return foundFile;
}

private File findAbsolutePath ( File fileToFind ) { File foundFile = fileToFind ; try { String clusterHome = ClusterConfiguration . getClusterHome ( ) ; if ( fileToFind . getPath ( ) == fileToFind . getName ( ) ) { File candidateFile = new File ( clusterHome + File . separator + "conf" + File . separator + fileToFind . getName ( ) ) ; if ( candidateFile . isFile ( ) ) { foundFile = candidateFile ; logger . debug ( MessageFormat . format ( "File was specified with name only, and found in default location: {0}" , foundFile . getAbsoluteFile ( ) ) ) ; } else throw new ConfigurationException ( MessageFormat . format ( "File does not exist: {0}" , candidateFile . getAbsolutePath ( ) ) ) ; } } catch ( ConfigurationException e ) { logger . debug ( MessageFormat . format ( "Cannot find absolute path for file: {0} \n{1}" , fileToFind . getName ( ) , e . getMessage ( ) ) ) ; return fileToFind ; } return foundFile ; }
try to find a file absolute path from a series of default location
