code: public void write(Writer writer) throws IOException {
      final Properties properties = new Properties();
  
      for (Map.Entry<DictionaryAttribute, String> e : getAttributes().entrySet()) {
        properties.setProperty(e.getKey().propertyName, e.getValue());
      }
  
      properties.store(writer, "# " + getClass().getName());
    }
docs: Write dictionary attributes (metadata).
  
  @param writer The writer to write to.
  @throws IOException Thrown when an I/O error occurs.