code: public void write(Model project, Document document, Writer writer, Format jdomFormat) throws java.io.IOException
     {
        updateModel(project, "project", new Counter(0), document.getRootElement());
  
        XMLOutputter outputter = new XMLOutputter();
        outputter.setFormat(jdomFormat);
        outputter.output(document, writer);
     }
docs: Method write.
  
  @param project
  @param jdomFormat
  @param writer
  @param document