protected IBufferedImageFactory getBufferedImageFactory(final Map<String, Object> params) {
if (params == null) {
return new SimpleBufferedImageFactory();
}
final IBufferedImageFactory result = (IBufferedImageFactory) params
.get(ImagingConstants.BUFFERED_IMAGE_FACTORY);
if (null != result) {
return result;
}