code: private String getTagName(final XMLEvent event) {
  
  		if (event.isStartElement()) {
  			return event.asStartElement().getName().toString();
  		}
  
  		if (event.isEndElement()) {
  			return event.asEndElement().getName().toString();
  		}
  
  		return null;
  	}
docs: ----- private methods -----