Source:
<code>public WebMap produceMap(WMSMapContent mapContent) throws ServiceException, IOException { QuickTileCache.MetaTileKey key = tileCache.getMetaTileKey(request); synchronized (key) { RenderedImage tile = tileCache.getTile(key, request); <START> tile = null; END> List<GridCoverage2D> renderedCoverages = null; if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer("Looked for meta tile " + key.metaTileCoords.x + ", " + key.metaTileCoords.y + "in cache: " + ((tile != null) ? "hit!" : "miss")); } if (tile == null) { if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer("Building meta tile " + key.metaTileCoords.x + ", " + key.metaTileCoords.y+" of size w="+ key.getTileSize() * key.getMetaFactor()+", h="+ key.getTileSize() * key.getMetaFactor()+ " with metatilign factor "+key.getMetaFactor()); } mapContent.getViewport().setBounds(key.getMetaTileEnvelope()); mapContent.setMapWidth(key.getTileSize() * key.getMetaFactor()); mapContent.setMapHeight(key.getTileSize() * key.getMetaFactor()); mapContent.setTileSize(key.getTileSize()); EnvFunction.setLocalValue("wms_bbox", mapContent.getViewport().getBounds()); EnvFunction.setLocalValue("wms_width", mapContent.getMapWidth()); EnvFunction.setLocalValue("wms_height", mapContent.getMapHeight()); RenderedImageMap metaTileMap = delegate.produceMap(mapContent); RenderedImage metaTile = metaTileMap.getImage(); RenderedImage[] tiles = split(key, metaTile); tileCache.storeTiles(key, tiles); tile = tileCache.getTile(key, request, tiles); renderedCoverages = metaTileMap.getRenderedCoverages(); } RenderedImageMap tileMap = new RenderedImageMap(mapContent, tile, getMimeType()); tileMap.setRenderedCoverages(renderedCoverages); return tileMap; } }</code><technical_language>REMOVE IT! :)</technical_language>

Target:
public WebMap produceMap(WMSMapContent mapContent) throws ServiceException, IOException { QuickTileCache.MetaTileKey key = tileCache.getMetaTileKey(request); synchronized (key) { RenderedImage tile = tileCache.getTile(key, request); List<GridCoverage2D> renderedCoverages = null; if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer("Looked for meta tile " + key.metaTileCoords.x + ", " + key.metaTileCoords.y + "in cache: " + ((tile != null) ? "hit!" : "miss")); } if (tile == null) { if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer("Building meta tile " + key.metaTileCoords.x + ", " + key.metaTileCoords.y+" of size w="+ key.getTileSize() * key.getMetaFactor()+", h="+ key.getTileSize() * key.getMetaFactor()+ " with metatilign factor "+key.getMetaFactor()); } mapContent.getViewport().setBounds(key.getMetaTileEnvelope()); mapContent.setMapWidth(key.getTileSize() * key.getMetaFactor()); mapContent.setMapHeight(key.getTileSize() * key.getMetaFactor()); mapContent.setTileSize(key.getTileSize()); EnvFunction.setLocalValue("wms_bbox", mapContent.getViewport().getBounds()); EnvFunction.setLocalValue("wms_width", mapContent.getMapWidth()); EnvFunction.setLocalValue("wms_height", mapContent.getMapHeight()); RenderedImageMap metaTileMap = delegate.produceMap(mapContent); RenderedImage metaTile = metaTileMap.getImage(); RenderedImage[] tiles = split(key, metaTile); tileCache.storeTiles(key, tiles); tile = tileCache.getTile(key, request, tiles); renderedCoverages = metaTileMap.getRenderedCoverages(); } RenderedImageMap tileMap = new RenderedImageMap(mapContent, tile, getMimeType()); tileMap.setRenderedCoverages(renderedCoverages); return tileMap; } }