class ConfigParser {

    public static void validateBooleanParam(final String val) throws ExitException {
        if (val == null) {
            throw new ExitException("Null string");
        }
        final String lc = val.toLowerCase();
        if (!(lc.equals("true") || lc.equals("false"))) {
            throw new ExitException("Invalid boolean value: " + val);
        }
    }

    private  ConfigParser();

}