monitor.beginTask(getName(), 14);
monitor.worked(2);
boolean prev = layer.eDeliver();
try {
layer.eSetDeliver(false);
addFeatureCommand = new AddFeatureCommand(feature, layer);
addFeatureCommand.setMap(getMap());
SubProgressMonitor subProgressMonitor = new SubProgressMonitor(monitor, 10);
// run the addFeature command (should result in a featureId we can use for selection)
addFeatureCommand.run(subProgressMonitor);