public InputStream getInputStream() throws ResourceStreamNotFoundException {
if (inputStream == null) {
try {
inputStream = url.openStream();
} catch (IOException e) {
throw new ResourceStreamNotFoundException("Resource " + url
+ " could not be opened", e);
}
}
return inputStream;