final ReferencedEnvelope bbox = bounds == null
|| bounds instanceof ReferencedEnvelope ? (ReferencedEnvelope) bounds
: new ReferencedEnvelope(bounds, getRenderExecutor()
.getContext().getCRS());
getRenderExecutor().visit(new ExecutorVisitor() {
public void visit(RenderExecutor executor) {
if (executor.getContext().getLayer() == layer
|| selectionLayer == executor.getContext().getLayer()) {
// tell the renderer the area of the screen to refresh
executor.getRenderer().setRenderBounds(bbox);