private int parseInt(String value) throws InvalidFormatException {
        try {
            return Integer.parseInt(value);
        } catch (NumberFormatException e) {
            throw new InvalidFormatException();
        }
    }