public static Properties initProperties(String propertyFile) {
    Properties properties = new Properties();
    try (InputStream is = new FileInputStream(propertyFile)) {
      properties.load(is);
    } catch (IOException ex) {
      System.out.println(String.format("Could not locate the %1$s file.", propertyFile));
      return null;
    }
    return properties;
  }