Feature sample = getSampleFeatureForRule(layer,
sampleFeature, applicableRules[i]);
FilterFactory ff = CommonFactoryFinder.getFilterFactory();
final Symbolizer[] symbolizers = applicableRules[i].getSymbolizers();
final GraphicLegend legend = applicableRules[i].getLegend();
// If this rule has a legend graphic defined in the SLD, use it
if (legend != null) {
if (this.samplePoint == null) {
Coordinate coord = new Coordinate(w / 2, h / 2);