System.out.println("in Naive User Agent get image: " + uri);
    public Image getImage(String uri) {		System.out.println("in Naive User Agent get image: " + uri);        java.io.InputStream is = null;        Image img = null;        uri = resolveURI(uri);        if (imageCache != null) {            SoftReference ref = (SoftReference) imageCache.get(uri);            if (ref != null) {                img = (Image) ref.get();            }            if (img != null) {                return img;            }        }        try {            is = new URL(uri).openStream();        } catch (FileNotFoundException ex) {            XRLog.exception("Can't find image file for URI: '" + uri + "'; skipping.");        } catch (java.net.MalformedURLException e) {            XRLog.exception("Bad URI given for image file: '" + uri + "'");        } catch (java.io.IOException e) {            XRLog.exception("Can't load image file; IO problem for URI '" + uri + "'", e);        }        if (is != null) {            try {                img = ImageIO.read(is);				img = GraphicsUtil.cleanImage(img);                if (imageCache == null) {                    imageCache = new HashMap();                }                imageCache.put(uri, new SoftReference(img));            } catch (Exception e) {                XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "'", e);            }        }		        return img;    }