code: @Override
      public void writeXML(@WillClose Writer out) throws IOException {
          assert project != null;
          bugsPopulated();
          XMLOutput xmlOutput;
          // if (project == null) throw new NullPointerException("No project");
  
  
          xmlOutput = new OutputStreamXMLOutput(out);
  
          writeXML(xmlOutput);
      }
docs: Write the BugCollection to given output stream as XML. The output stream
  will be closed, even if an exception is thrown.
  
  @param out
  the OutputStream to write to