final ChangeAction changeAction = container.getAction();
if (changeAction.equals(ChangeAction.Delete)) {
SimpleFeatureType ft = entity instanceof Node ? OSMUtils.nodeType() : OSMUtils
.wayType();
String id = Long.toString(entity.getId());
target.put(new FeatureToDelete(ft, id));
return;
}
if (changeAction.equals(ChangeAction.Modify)) {
// Check that the feature to modify exist. If so, we will just treat it as an
// addition, overwriting the previous feature