String extension = IOUtils.getExtension(imageFile);
ImageProvider provider = (ImageProvider) providers.get(extension);
ImageData imageData = null;
if (provider != null) {
try {
imageData = provider.provideImage(imageFile);
} catch (IOException e) {
LOGGER.error("unexpected-ioexception",
e);
}
}