public static Configuration load(String path,ClassLoader classLoader,Consumer<String> logger) throws IOException {
  try (InputStream stream=IoUtil.getResourceAsStream(path,classLoader,null,null,logger)){
    Properties props=new Properties();
    if (stream != null) {
      props.load(stream);
    }
    return from(props);
  }
 }

public static Configuration load ( String path , ClassLoader classLoader , Consumer < String > logger ) throws IOException { try ( InputStream stream = IoUtil . getResourceAsStream ( path , classLoader , null , null , logger ) ) { Properties props = new Properties ( ) ; if ( stream != null ) { props . load ( stream ) ; } return from ( props ) ; } }
obtain a configuration instance by loading the properties from a file on the file system or classpath given by the supplied path .
