protected static boolean asBoolean(Object value, boolean defaultValue) {
        if (value == null) return defaultValue;

        String s = value.toString();
        int sz = s.length();
        return switch (sz) {
            case 0: yield true;
            case 4: yield ((s.charAt(0) | 0x20) == 't') &&
                          ((s.charAt(1) | 0x20) == 'r') &&
                          ((s.charAt(2) | 0x20) == 'u') &&
                          ((s.charAt(3) | 0x20) == 'e');
            default: yield false;
        };
    }
Converts a value to boolean - this will be true only if the value is either the empty string,
or any Object which has a toString which is case-insensitive equal to "true"
container-core/src/main/java/com/yahoo/processing/request/Properties.java