final ReferencedEnvelope mapArea = bounds.toReferencedEnvelope(paintArea, transformer.getDPI());
renderer.paint(graphics2D, paintArea, mapArea);
} catch (Exception e) {
throw ExceptionUtils.getRuntimeException(e);
} finally {
content.dispose();
}
}
/**
* Get the {@link org.geotools.data.DataStore} object that contains the data for this layer.