} catch (RuntimeException re) {
String err = "Error while rendering page " + page.getPageNumberString();
log.error(err, re);
throw re;
} catch (IOException ioe) {
RendererEventProducer eventProducer = RendererEventProducer.Provider.get(
renderer.getUserAgent().getEventBroadcaster());
eventProducer.ioError(this, ioe);
} catch (FOPException e) {
//TODO use error handler to handle this FOPException or propagate exception
String err = "Error while rendering page " + page.getPageNumberString();
log.error(err, e);
throw new IllegalStateException("Fatal error occurred. Cannot continue. "