public static boolean asBoolean(final String str) {
        if (str == null || str.isEmpty()) {
            return false;
        } else {
            // Assume the user has not used mixed case, else incur the cost of lower casing the string
            return TRUE_VALUES.contains(str)
                   || TRUE_VALUES.contains(str.toLowerCase());
        }
    }
@return True if str is non-null and equal to one of (y|yes|true|on|enabled|1)
ignoring case. All other values return false.
stroom-util/src/main/java/stroom/util/string/StringUtil.java