public static Map < String , String > loadPropertiesFrom ( String path ) throws IOException { Properties properties = new Properties ( ) ; try ( InputStream inputStream = new FileInputStream ( path ) ) { properties . load ( inputStream ) ; } return fromProperties ( properties ) ; }
Loads properties from the given file