Uu.p("getImageResource() called on: " + uri);
    public ImageResource getImageResource(String uri) {        ImageResource ir = null;		Uu.p("getImageResource() called on: " + uri);        uri = resolveURI(uri);		Uu.p("resolved URI to: " + uri);        ir = (ImageResource) imageCache.get(uri);        //TODO: check that cached image is still valid        if (ir == null) {            InputStream is = null;            try {                URLConnection uc = new URL(uri).openConnection();                uc.connect();                is = uc.getInputStream();            } catch (MalformedURLException e1) {                XRLog.exception("bad URL given: " + uri, e1);            } catch (IOException e11) {                XRLog.exception("IO problem for " + uri, e11);            }            if (is != null) {                try {                    Image img = ImageIO.read(is);                    img = GraphicsUtil.cleanImage(img);                    ir = new ImageResource(img);                    imageCache.put(uri, ir);                } catch (IOException e) {                    XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "'", e);                }            }        }        if (ir == null) ir = new ImageResource(null);        return ir;    }