/**
* Applies any deferred events
* by dispatching to the appropriate _deferred method
*/
protected void applyDeferredEvents() throws SAXException {
SAXEvent event = null;
while((event = deferred.poll()) != null) {
if(event instanceof SetDocumentLocator) {
final SetDocumentLocator setDocumentLocator = (SetDocumentLocator)event;
setDocumentLocator_deferred(setDocumentLocator.locator);
} else if(event instanceof StartDocument) {