IterableXMLEventReader reader = getXMLEventReader();
try {
Deque<C2Element> stack = new ArrayDeque<C2Element>();
while (reader.hasNext()) {
XMLEvent event = reader.nextEvent();
if (event.isEndElement()) {
stack.pop();
} else if (event.isStartElement()) {
String name = event.asStartElement().getName().getLocalPart();