XMLSecEvent xmlSecEvent = getCurrentEvent();
switch (xmlSecEvent.getEventType()) {
case START_ELEMENT:
return xmlSecEvent.asStartElement().getName().getLocalPart();
case END_ELEMENT:
return xmlSecEvent.asEndElement().getName().getLocalPart();
default:
throw new IllegalStateException(ERR_STATE_NOT_ELEM);
}
}