if(configHandler.getCachedReaderSPI() == null){
// Get the URL associated to the file
URL granuleUrl = DataUtilities
.fileToURL(fileBeingProcessed);
// Get the ImageInputStreamSPI associated to the URL
ImageInputStreamSpi inStreamSpi = Utils.getInputStreamSPIFromURL(granuleUrl);
// Ensure that the ImageInputStreamSPI is available
if(inStreamSpi==null){
throw new IllegalArgumentException("no inputStreamSPI available!");
}
ImageInputStream inStream=null;
try{
// Get the ImageInputStream from the SPI
inStream = inStreamSpi
.createInputStreamInstance(granuleUrl, ImageIO.getUseCache(),
ImageIO.getCacheDirectory());
// Throws an Exception if the ImageInputStream is not present
if(inStream == null){
if(LOGGER.isLoggable(Level.WARNING)){