}
@Override
public XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException {
if (getEventAllocator() == null) {
return new SimpleXMLEventReader(reader);
} else {
return new SimpleXMLEventReader(reader, getEventAllocator().newInstance());
}
}