public Configuration loadConfigFromResource(Resource resource){
  PropertiesConfiguration result=new PropertiesConfiguration();
  try {
    result.load(resource.getInputStream());
    return result;
  }
 catch (  ConfigurationException|IOException e) {
    LOG.error(CONFIGURATION_LOAD_ERROR.format(resource.getFilename()),e);
    throw new SystemConfigException(CONFIGURATION_LOAD_ERROR.format(resource.getFilename()),e);
  }
}

public Configuration loadConfigFromResource ( Resource resource ) { PropertiesConfiguration result = new PropertiesConfiguration ( ) ; try { result . load ( resource . getInputStream ( ) ) ; return result ; } catch ( ConfigurationException | IOException e ) { LOG . error ( CONFIGURATION_LOAD_ERROR . format ( resource . getFilename ( ) ) , e ) ; throw new SystemConfigException ( CONFIGURATION_LOAD_ERROR . format ( resource . getFilename ( ) ) , e ) ; } }
build a configuration object from a resource , processing it as a properties file .
