question: int parseIntOption ( String key , String value ) throws URISyntaxException { try { return Integer . parseInt ( value ) ; } catch ( NumberFormatException nfe ) { throw new URISyntaxException ( value , "Invalid " + key + " value: " + value ) ; } }
target:  Internal utility method to throw a syntax error if a value can not be parsed.