code: static Configuration loadConfig(ConfigurationStream stream) throws ConfigurationException {
          ConfigProvider<Configuration> provider = getProviderByFileExtention(stream.getExtention());
          return provider.readConfig(stream.getInputStream());
      }
docs: Load config.
  
  @param stream the stream
  @return the configuration
  @throws ConfigurationException the configuration exception