code: public void writeStartDocument() throws XMLStreamException {
  		this.init();
  		try {
  			encoder.encodeStartDocument();
  		} catch (Exception e) {
  			throw new XMLStreamException(e.getLocalizedMessage(), e);
  		}
  	}
docs: /*
  Write the XML Declaration.
  
  (non-Javadoc)
  
  @see javax.xml.stream.XMLStreamWriter#writeStartDocument()