public Configuration fromFile(File path) throws ConfigurationLoadException {
    PropertiesConfiguration configuration = setupConfiguration(new PropertiesConfiguration());
    configuration.setFile(path);
    try {
      configuration.load();
      return configuration;
    } catch (ConfigurationException e) {
      throw new ConfigurationLoadException(
          "Encountered a problem reading the provided configuration file \"" + path + "\"!", e);
    }
  }
public Configuration fromFile ( File path ) throws ConfigurationLoadException { PropertiesConfiguration configuration = setupConfiguration ( new PropertiesConfiguration ( ) ) ; configuration . setFile ( path ) ; try { configuration . load ( ) ; return configuration ; } catch ( ConfigurationException e ) { throw new ConfigurationLoadException ( "Encountered a problem reading the provided configuration file \"" + path + "\"!" , e ) ; } }
Loads configuration from a specified path.

@param path the path to try first as a resource, then as a file
@throws ConfigurationLoadException if the configuration could not be
loaded.
@returns properties loaded from the specified path or null.