private static ColorCode string2ColorCode(String s) throws Exception {
		ColorCode[] values = ColorCode.values();
		for (ColorCode c : values) {
			if (s.compareTo(c.toString()) == 0)
				return c;
		}
		throw new Exception();
	}