ret, rootURL, rewritingInformation);
ret, rootURL, imageInformation);
    public final String computeURL(FacesContext facesContext,            UIComponent component, int type, String attributeName, String url,            String rootURL, IURLRewritingInformation rewritingInformation) {        if (type != IURLRewritingProvider.IMAGE_URL_TYPE) {            if (parent == null) {                return url;            }            return parent.computeURL(facesContext, component, type,                    attributeName, url, rootURL, rewritingInformation);        }        ImageURLRewritingInformation imageInformation = null;        if (rewritingInformation instanceof ImageURLRewritingInformation) {            imageInformation = (ImageURLRewritingInformation) rewritingInformation;        }        int idx = url.indexOf(URL_REWRITING_SEPARATOR);        if (idx < 0) {            if (parent == null) {                if (imageInformation != null) {                    imageInformation.setOriginalImageURL(url);                    imageInformation.setRootImageURL(rootURL);                    imageInformation.setContentType(getContentType(url));                }                return url;            }            return parent.computeURL(facesContext, component, type,                    attributeName, url, rootURL, rewritingInformation);        }        if (imageInformation != null) {            imageInformation.setOriginalImageURL(url);            imageInformation.setRootImageURL(rootURL);        }        boolean mainURL = false;        String filter;        if (idx == url.length() - 2) { // Filtre tout seul !            if (rootURL == null) {                throw new FacesException("Can not get main image of '" + url                        + "'.");            }            filter = url.substring(0, idx);            url = rootURL;        } else {            filter = url.substring(0, idx);            url = url.substring(idx + URL_REWRITING_SEPARATOR.length());            mainURL = true;        }        String ret = formatImageURL(facesContext, filter, url, mainURL,                imageInformation);        if (parent == null) {            return ret;        }        return parent.computeURL(facesContext, component, type, attributeName,                ret, rootURL, rewritingInformation);    }