if (style == null) {
style = Utilities.createDefaultPolygonStyle();
}
DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
dsv.visit(style);
oldStyleCopy = (Style) dsv.getCopy();
if (isPolygonStyle(style)) {
propertiesEditor = new PolygonPropertiesEditor(layer);
propertiesEditor.open(mainComposite, style);