/** * Retrieves the legend for the provided request. * * @return a {@link BufferedImage} that represents the legend for the provided request. */ public BufferedImage getLegend() { if (rasterSymbolizer == null) { return null; } return createResponse(); }