code: public static Properties load(File file) throws IOException {
          if (file.isFile()) {
              return load(file.toURI().toURL());
          }
          return new Properties();
      }
docs: Utility method to load a properties file.
  
  @param file the file
  @return the read properties, empty if the file cannot be found.
  @throws IOException if the file cannot be loaded.