ImageSessionContext sessionContext
= userAgent.getImageSessionContext();
ImageInfo info = manager.getImageInfo(uri, sessionContext);
bkg.setImageInfo(info);
} catch (ImageException e) {
ResourceEventProducer eventProducer
= ResourceEventProducer.Provider.get(
this.userAgent.getEventBroadcaster());
eventProducer.imageError(this, uri, e, getLocator());
} catch (FileNotFoundException fnfe) {
ResourceEventProducer eventProducer
= ResourceEventProducer.Provider.get(
this.userAgent.getEventBroadcaster());
eventProducer.imageNotFound(this, uri, fnfe, getLocator());
} catch (IOException ioe) {
ResourceEventProducer eventProducer
= ResourceEventProducer.Provider.get(
this.userAgent.getEventBroadcaster());
eventProducer.imageIOError(this, uri, ioe, getLocator());
}
String repeat = attributes.getValue("bkg-repeat");
if (repeat != null) {
bkg.setRepeat(repeat);