void (final ColorDescriptor value) { Color color = value.getColor(); if (color != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_COLOR, color.getRGB()); } else if (value.getSwingColor() != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_SWING_COLOR, value.getSwingColor()); } else if (value.getSystemColor() != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_SYSTEM_COLOR, value.getSystemColor()); } else if (value.getAWTColor() != null) { addAttribute(UIFormXmlConstants.ATTRIBUTE_AWT_COLOR, value.getAWTColor()); } }