reader.setInput(input);
try {
return propertyExtractor.extract(reader);
} catch (IOException ex) {
ImageUtils.logContentError(LOGGER, Level.WARNING, errorTemplate + ex.toString(), file);
<BUG>throw ex;
}</BUG>
} else {
IIOException iioException = newImageReaderException(file);
ImageUtils.logContentError(LOGGER, Level.WARNING, errorTemplate + iioException.toString(), file);

reader.setInput(input);
try {
return propertyExtractor.extract(reader);
} catch (IOException ex) {
ImageUtils.logContentError(LOGGER, Level.WARNING, errorTemplate + ex.toString(), file);
throw ex;
} finally {
reader.dispose();
}
} else {
IIOException iioException = newImageReaderException(file);
ImageUtils.logContentError(LOGGER, Level.WARNING, errorTemplate + iioException.toString(), file);
