if (event instanceof ImageEvent && loadImages.get()) {
final ImageEvent e = (ImageEvent) event;
final InputStream is = SessionReplayImpl.this.loader.getFile(e.associatedFilename);
final BufferedImage read = ImageIO.read(is);
event = new PseudoImageEvent(e, read);
}
// Now we are permitted to fire the event.
try {
listener.nextEvent(event);