public InputStream getInputStream() throws IOException { InputStream istream = resource.getInputStream(); if (istream == null) { throw new IOException(getDescription() + " cannot be resolved as InputStream"); } return istream; }