private Color getBackgroundColor(final String background) {
		if ((background == null) || (background.length() != 7) || (background.charAt(0) != '#')) {
			return Color.white;
		} else {
			String hexcolor, red, green, blue;
			hexcolor = background.substring(1, background.length());
			red = hexcolor.substring(0, 2);
			green = hexcolor.substring(2, 4);
			blue = hexcolor.substring(4, 6);
			return new Color(Integer.parseInt(red, 16), Integer.parseInt(green, 16),
					Integer.parseInt(blue, 16));
		}
	}