for (StyleDeclaration styleDeclaration : styleDef.getDeclarations().values())
{
Collection<StyleDeclarationBlock> blocks = styleDeclaration.getDeclarationBlocks();
for (StyleDeclarationBlock block : blocks)
{
StyleProperty styleProperty = block.getProperties().get("styleName");
if (styleProperty != null)
{
Object value = styleProperty.getValue();
if (value instanceof String)
{
result = (String) value;
}