code: @Override
      public void write(final Writer writer) throws ConfigurationException, IOException {
          Preconditions.checkNotNull(writer);
  
          @SuppressWarnings("unchecked") final
          HashMap<String, Object> settings = (HashMap<String, Object>) fromNode(this.getModel().getInMemoryRepresentation());
          this.mapper.writerWithDefaultPrettyPrinter().writeValue(writer, settings);
      }
docs: Writes the configuration.
  
  @param writer The writer to write to.
  @throws ConfigurationException
  @throws IOException