protected static String convertColorToWebColorValue(Color c) {
		String red = Integer.toHexString(c.getRed());
		if (red.length() == 1) {
			red = "0" + red;
		}
		String green = Integer.toHexString(c.getGreen());
		if (green.length() == 1) {
			green = "0" + green;
		}
		String blue = Integer.toHexString(c.getBlue());
		if (blue.length() == 1) {
			blue = "0" + blue;
		}
		return new StringBuffer().append("#").append(red).append(green).append(blue).toString();
	}