fingerprint = sb.toString(); if (_csCache == null) { _csCache = new java.util.HashMap(); } CascadedStyle cs = (CascadedStyle) _csCache.get(fingerprint);  if (cs == null) { java.util.List propList = new java.util.LinkedList(); for (java.util.Iterator i = getSelectedRulesets((java.util.List) me.getValue()); i.hasNext();) { org.xhtmlrenderer.css.sheet.Ruleset rs = (org.xhtmlrenderer.css.sheet.Ruleset) i.next(); for (java.util.Iterator j = rs.getPropertyDeclarations(); j.hasNext();) { propList.add((org.xhtmlrenderer.css.sheet.PropertyDeclaration) j.next()); }
if (propList.size() == 0) cs = CascadedStyle.emptyCascadedStyle; else { cs = new CascadedStyle(propList.iterator());  String fingerprint = cs.getFingerprint(); CascadedStyle internal = (CascadedStyle) _csCache.get(fingerprint); if (internal != null) { cs = internal; } else { _csCache.put(fingerprint, cs);
    private void resolvePseudoElements(org.w3c.dom.Element e, HashMap pseudoSelectors) {        java.util.Iterator si = pseudoSelectors.entrySet().iterator();        if (!si.hasNext()) {            return;        }        java.util.Map pelm = new java.util.HashMap();        while (si.hasNext()) {            java.util.Map.Entry me = (java.util.Map.Entry) si.next();            String fingerprint = null;            //try to re-use a CascadedStyle            StringBuffer sb = new StringBuffer();            for (java.util.Iterator i = getSelectedRulesets((java.util.List) me.getValue()); i.hasNext();) {                sb.append(i.next().hashCode());                sb.append(":");            }            fingerprint = sb.toString();            if (_csCache == null) {                _csCache = new java.util.HashMap();            }            CascadedStyle cs = (CascadedStyle) _csCache.get(fingerprint);            if (cs == null) {                java.util.List propList = new java.util.LinkedList();                for (java.util.Iterator i = getSelectedRulesets((java.util.List) me.getValue()); i.hasNext();) {                    org.xhtmlrenderer.css.sheet.Ruleset rs = (org.xhtmlrenderer.css.sheet.Ruleset) i.next();                    for (java.util.Iterator j = rs.getPropertyDeclarations(); j.hasNext();) {                        propList.add((org.xhtmlrenderer.css.sheet.PropertyDeclaration) j.next());                    }                }                if (propList.size() == 0)                    cs = CascadedStyle.emptyCascadedStyle;                else                    cs = new CascadedStyle(propList.iterator());                _csCache.put(fingerprint, cs);            }            pelm.put(me.getKey(), cs);        }        _peMap.put(e, pelm);    }