public static Boolean parseBoolean(String text) {
        switch (text.toLowerCase()) {
        case "true":
        case "on":
        case "yes":
            return true;
        case "false":
        case "off":
        case "no":
        default:
            return false;
        }
    }