private URI getUri(UrlResource urlResource) { URI uri; try { uri = urlResource.getURI(); } catch (IOException e) { throw new IllegalArgumentException("Could not get URI from " + urlResource.getDescription()); } return uri; }
private URI getUri(UrlResource urlResource) { URI uri; try { uri = urlResource.getURI(); } catch (IOException e) { throw new IllegalArgumentException("Could not get URI from " + urlResource.getDescription()); } return uri; }