public Color stateToColor(String state, boolean hard)
	{
		if (state.equals("0") == true)
			return config.getBackgroundColorOkStatus();
		else if (state.equals("1") == true) {
			if (hard)
				return config.getWarningBgColor();
			return config.getWarningBgColorSoft();
		}
		else if (state.equals("2") == true) {
			if (hard)
				return config.getCriticalBgColor();
			return config.getCriticalBgColorSoft();
		}
		else if (state.equals("3") == true) // UNKNOWN STATE
			return config.getNagiosUnknownBgColor();
		else if (state.equals("254") == true) // no color at all
			return null;
		else if (state.equals("255") == true) // background color
			return config.getBackgroundColor();

		log.add("Unknown state: " + state);
		return Color.ORANGE;
	}