protected String getCharacterData(XMLEventReader reader) throws XMLStreamException {
        XMLEvent nextEvent = reader.nextEvent();
        return nextEvent.isCharacters() ? nextEvent.asCharacters().getData() : "";
    }