public void rollback( IProgressMonitor monitor ) throws Exception {
SimpleFeature feature = editFeature.get(monitor);
feature.setAttribute(xpath, oldValue);
ILayer layer = editLayer.get(monitor);
FeatureStore<SimpleFeatureType, SimpleFeature> resource = layer.getResource(FeatureStore.class, null);
AttributeDescriptor attributeType = layer.getSchema().getDescriptor(xpath);
FilterFactory filterFactory = CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
Id id = filterFactory.id(
FeatureUtils.stringToId(filterFactory, feature.getID()));
resource.modifyFeatures(attributeType, oldValue, id);
}