code: @Override
      public void endDocument() throws SAXException {
          try {
              this.writer.close();
          } catch (IOException ioe) {
              throw (SAXException)new SAXException(ioe).initCause(ioe);
          }
      }
docs: Must be called in the end.
  
  @throws SAXException
  if there are IO problems