try
{
if (isValid() && !deleted)
{
CssDeclaration[] declarations = ((CssBlock) destinationBlock).getDeclarations();
CssDeclaration relativeTo = declarations != null && declarations.length > 0
? declarations[declarations.length - 1]
: null;
((CssBlock) destinationBlock).addDeclaration(property, value + (important ? " !important" : ""), relativeTo);
}
}