text: public static Boolean toBooleanOrNull(String stringValue) {if (stringValue == null)return null;if (equalsIgnoreCase("yes", stringValue) || equalsIgnoreCase("true", stringValue) || equalsIgnoreCase("1", stringValue) || equalsIgnoreCase("on", stringValue)) return Boolean.TRUE;else if (equalsIgnoreCase("no", stringValue) || equalsIgnoreCase("false", stringValue) || equalsIgnoreCase("0", stringValue) || equalsIgnoreCase("off", stringValue)) return Boolean.FALSE;else return null;}