private static Properties loadProperties(String propertiesFile){
  Properties properties=new Properties();
  try (InputStream is=new FileInputStream(propertiesFile)){
    properties.load(is);
  }
 catch (  IOException e) {
    throw new RuntimeException("failed to load properties",e);
  }
  return properties;
}

private static Properties loadProperties ( String propertiesFile ) { Properties properties = new Properties ( ) ; try ( InputStream is = new FileInputStream ( propertiesFile ) ) { properties . load ( is ) ; } catch ( IOException e ) { throw new RuntimeException ( "failed to load properties" , e ) ; } return properties ; }
loads properties from a properties file on the local filesystem .
