int parseIntOption(String key,String value) throws URISyntaxException {
  try {
    return Integer.parseInt(value);
  }
 catch (  NumberFormatException nfe) {
    throw new URISyntaxException(value,"Invalid " + key + " value: "+ value);
  }
}

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