return null;
}
if (!RULES.containsKey(imageRule)) {
String msg = EXCEPTION_LOCALIZER.format("rule-unknown",
"imageRule");
throw new ImageWriterFactoryException(msg);
}
return (ImageWriter) RULES.get(imageRule);
} catch (Exception e) {
LOGGER.error("image-writing-failure", e.toString());
throw new ImageWriterFactoryException(e);
}
}