@Override public void writeEndElement() throws XMLStreamException {
  log.log(Level.FINE,"writeEndElement()");
  calculateAndNextTag();
}

@ Override public void writeEndElement ( ) throws XMLStreamException { log . log ( Level . FINE , "writeEndElement()" ) ; calculateAndNextTag ( ) ; }
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 . in the current implementation it completes the current element with proper prefix and localname ( cos now all the namespaces are correctly set ) .
