if (!newStyles.equals(oldStyles)) {
oldStyles = new HashSet<String>(oldStyles);
oldStyles.removeAll(newStyles);
for (String removedStyle : oldStyles) {
mediator.truncateByLayerAndStyle(layerName, removedStyle);
}
}
}
private Set<String> gridsetNames(Set<XMLGridSubset> gridSubsets) {