class ConfigParser {

    public static void validateIntegerParam(final String val) throws ExitException {
        if (val == null) {
            throw new NullPointerException();
        }
        try {
            Integer.parseInt(val);
        } catch (final NumberFormatException e) {
            throw new ExitException("Invalid integer: " + val, e);
        }
    }

    private  ConfigParser();

}