code: public void writeEndElement() throws XMLStreamException {
  		try {
  			this.checkPendingATEvents();
  			encoder.encodeEndElement();
  		} catch (Exception e) {
  			throw new XMLStreamException(e.getLocalizedMessage(), e);
  		}
  	}
docs: /*
  Writes an end tag to the output relying on the internal state of the
  writer to determine the prefix and local name of the event.
  
  (non-Javadoc)
  
  @see javax.xml.stream.XMLStreamWriter#writeEndElement()