Trovit/src/main/java/org/openestate/io/trovit/TrovitUtils.java
public static Boolean parseBooleanValue(String value) {
        value = StringUtils.lowerCase(StringUtils.trimToEmpty(value), Locale.ENGLISH);
        switch (value) {
            case "true":
            case "yes":
            case "si":
            case "1":
                return Boolean.TRUE;

            case "false":
            case "no":
            case "0":
                return Boolean.FALSE;

            default:
                throw new IllegalArgumentException("Can't parse boolean value '" + value + "'!");
        }
    }
public static Boolean parseBooleanValue(String value) {
        value = StringUtils.lowerCase(StringUtils.trimToEmpty(value), Locale.ENGLISH);
        switch (value) {
            case "true":
            case "yes":
            case "si":
            case "1":
                return Boolean.TRUE;

            case "false":
            case "no":
            case "0":
                return Boolean.FALSE;

            default:
                throw new IllegalArgumentException("Can't parse boolean value '" + value + "'!");
        }
    }
Read a {@link Boolean} value from XML.

@param value XML string
@return parsed value or null, if the value is invalid