- posponedRemovedOperational.remove(path);
- doPutWithEnsureParents(getDelegate(), LogicalDatastoreType.OPERATIONAL, path, data);
+ boolean previouslyRemoved = posponedRemovedOperational.remove(path);
+
+ @SuppressWarnings({ "rawtypes", "unchecked" })
+ final InstanceIdentifier<DataObject> castedPath = (InstanceIdentifier) path;
+ if(previouslyRemoved) {
+ put(LogicalDatastoreType.OPERATIONAL, castedPath, data,true);
+ } else {
+ merge(LogicalDatastoreType.OPERATIONAL, castedPath, data,true);
+ }