code: public static Properties getFileAsProperties(String path) {
          File file = new File(nullToEmpty(path));
          return getFileAsProperties(file);
      }
docs: Loads properties from file path
  @param path the path to properties file
  @return the loaded properties