element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, nullString);
final String fontString = result.getProperty("font");
if (fontString != null)
{
final Font font = (Font) new FontConverter().convertFromString(fontString, getLocator());
element.getStyle().setStyleProperty(TextStyleKeys.BOLD, (font.isBold()) ? Boolean.TRUE : Boolean.FALSE);
element.getStyle().setStyleProperty(TextStyleKeys.ITALIC, (font.isItalic()) ? Boolean.TRUE : Boolean.FALSE);
element.getStyle().setStyleProperty(TextStyleKeys.FONT, font.getName());
element.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, IntegerCache.getInteger(font.getSize()));
}
final String foreGround = result.getProperty("foreground");
if (foreGround != null)
{
element.getStyle().setStyleProperty(ElementStyleKeys.PAINT, ColorConverter.getObject(foreGround));