docs: @RequestMapping(value = "/legendgraphic", method = RequestMethod.GET)
  	public ModelAndView getGraphic(@RequestParam("layerId") String layerId,
  			@RequestParam(value = "styleName", required = false) String styleName,
  			@RequestParam(value = "ruleIndex", required = false) Integer ruleIndex,
  			@RequestParam(value = "format", required = false) String format,
  			@RequestParam(value = "width", required = false) Integer width,
  			@RequestParam(value = "height", required = false) Integer height,
  			@RequestParam(value = "scale", required = false) Double scale,
  			@RequestParam(value = "allRules", required = false) Boolean allRules, HttpServletRequest request)
  			throws GeomajasException {
  		if (!allRules) {
  			return getGraphic(layerId, styleName, ruleIndex, format, width, height, scale);
  		} else {
  			return getGraphics(layerId, styleName, format, width, height, scale);
  		}
  	}