primitive.setCssText(Idents.convertIdent(cssName, org));
if (primitive.getCssText() == null) { primitive.setCssText(org); }  String converted = Idents.convertIdent(cssName, org); if (!converted.equals(org)) { primitive.setCssText(converted); }
    public DerivedValue(CSSName cssName, CSSPrimitiveValue primitive, CalculatedStyle style) {        _cssName = cssName;        _domCSSPrimitiveValue = primitive;        String org = _domCSSPrimitiveValue.getCssText();        primitive.setCssText(Idents.convertIdent(cssName, org));        if (primitive.getCssText() == null) {            throw new XRRuntimeException("CSSValue for '" + cssName + "' is null after " +                    "resolving CSS identifier for value '" + org + "'");        }        _style = style;        // We must calculate this based on the current DPI        //tobe: resolve it through RenderingContext MM__PER__PX = ( CM__PER__IN * MM__PER__CM ) / style.getContext().getCtx().getDPI();        try {            if (_cssName == CSSName.BACKGROUND_POSITION) {                pullPointValuesForBGPos(primitive);            } else {                if (Idents.looksLikeALength(primitive.getCssText()) && !(_cssName == CSSName.FONT_WEIGHT)) {                    // split out the length (as string), as float, as the primitive type                    pullLengthValueParts(primitive);                }            }        } catch (Exception ex) {            if (_style.getParent() != null) {                _style.getParent().dumpProperties();            }            throw new XRRuntimeException("For " + cssName + ": '" + org + "', failed to instantiate DerivedValue. " + ex.getMessage());        }    }