Graphic[] legendCopy = rule.getLegendGraphic();
for (int i = 0; i < legendCopy.length; i++) {
legendCopy[i] = copy(legendCopy[i]);
}
Description descCopy = rule.getDescription();
descCopy = copy(descCopy);
copy = new StyleFactoryImpl().createRule(symsCopy, descCopy, legendCopy, rule.getName(),
filterCopy, rule.isElseFilter(), rule.getMaxScaleDenominator(), rule
.getMinScaleDenominator());