Adding throws clause for ParseException