private Color getValueAsColor(String value, Color defaultColor) {
		try {
			if(value.startsWith("#")) {
				return Color.decode(value.substring(1));
			} else {
				Field f = Color.class.getField(value);
				return (Color) f.get(null);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return defaultColor;
	}