src/main/java/org/apereo/cas/security/FilterUtils.java
public static boolean parseStringToBooleanDefaultingToFalse(final String stringToParse) {

        if ("true".equals(stringToParse)) {
            return true;
        } else if ("false".equals(stringToParse)) {
            return false;
        } else if (null == stringToParse) {
            return false;
        }

        logException(LOGGER, new IllegalArgumentException("String [" + stringToParse +
                "] could not parse to a boolean because it was not precisely 'true' or 'false'."));
        return false;
    }
public static boolean parseStringToBooleanDefaultingToFalse(final String stringToParse) {

        if ("true".equals(stringToParse)) {
            return true;
        } else if ("false".equals(stringToParse)) {
            return false;
        } else if (null == stringToParse) {
            return false;
        }

        logException(LOGGER, new IllegalArgumentException("String [" + stringToParse +
                "] could not parse to a boolean because it was not precisely 'true' or 'false'."));
        return false;
    }
Parse a String to a boolean.
<p>
"true" : true
"false" : false
null : false
Anything else : logException(IllegalArgumentException).
<p>
This is a stateless static method.
<p>
This method is an implementation detail and is not exposed API.
This method is only non-private to allow JUnit testing.

@param stringToParse a String to parse to a boolean as specified
@return true or false
@throws IllegalArgumentException if the String is not true, false, or null.