code: public void storeProperties(Map<String, String> properties) throws IOException {
          Properties props = new Properties();
          properties.forEach(props::setProperty);
          try (FileOutputStream out = new FileOutputStream(getPropertiesFile())) {
              props.store(out, "");
          }
      }
docs: Stores the given meta infos for the stored object.
  
  @param properties properties to store
  @throws IOException in case of an IO error