public CSSValue parsePropertyValue(int idx, String value) { assert idx >= 0 && idx < pm.getNumberOfProperties(); ValueManager vm = pm.getValueManager(idx); try { LexicalUnit lu; lu = parser.parsePropertyValue(new InputSource(new StringReader(value))); return vm.createValue(lu, this); } catch (Exception e) {   } return vm.getDefaultValue();
public CSSValue parsePropertyValue(String prop, String value) { int idx = pm.getPropertyIndex(prop); if (idx == -1) return null; return parsePropertyValue(idx, value);
    public CSSValue parsePropertyValue(int idx, String value)    {    	assert idx >= 0 && idx < pm.getNumberOfProperties();        ValueManager vm = pm.getValueManager(idx);        try {            LexicalUnit lu;            lu = parser.parsePropertyValue(new InputSource(new StringReader(value)));            return vm.createValue(lu, this);        } catch (Exception e) {        	/** @todo: logout the error messages*/        	//logout the         }         return vm.getDefaultValue();    }