public boolean loadConfiguration(final File file){
  try {
    configuration=(MqttSpyDaemonConfiguration)parser.loadFromFile(file);
    populateDefaults();
    return true;
  }
 catch (  XMLException e) {
    logger.error("Cannot process the configuration file at " + file.getAbsolutePath(),e);
  }
catch (  FileNotFoundException e) {
    logger.error("Cannot read the configuration file from " + file.getAbsolutePath(),e);
  }
  return false;
}

public boolean loadConfiguration ( final File file ) { try { configuration = ( MqttSpyDaemonConfiguration ) parser . loadFromFile ( file ) ; populateDefaults ( ) ; return true ; } catch ( XMLException e ) { logger . error ( "Cannot process the configuration file at " + file . getAbsolutePath ( ) , e ) ; } catch ( FileNotFoundException e ) { logger . error ( "Cannot read the configuration file from " + file . getAbsolutePath ( ) , e ) ; } return false ; }
loads configuration from the given file .
