code: private final void postOptmisticReplace(java.util.List managedObjectsToAdd,
                                              java.util.List managedObjectsToReplace,
                                              java.util.List managedObjectsToDelete,
                                              Transaction transaction)
                      throws ObjectManagerException {
  
          // Drive the postOptimisticReplace method for the ManagedObjects to add.
          if (managedObjectsToAdd != null) {
              for (java.util.Iterator managedObjectIterator = managedObjectsToAdd.iterator(); managedObjectIterator.hasNext();) {
                  ManagedObject managedObject = (ManagedObject) managedObjectIterator.next();
                  managedObject.postAdd(transaction, false);
              } // for ... managedObjectsToAdd.
          } // if (managedObjectsToAdd != null).
  
          // Drive the postOptimisticReplace method for the ManagedObjects to optimistic replace.
          if (managedObjectsToReplace != null) {
              for (java.util.Iterator managedObjectIterator = managedObjectsToReplace.iterator(); managedObjectIterator.hasNext();) {
                  ManagedObject managedObject = (ManagedObject) managedObjectIterator.next();
                  managedObject.postOptimisticReplace(transaction, false);
              } // for ... managedObjectsToReplace.
          } // if (managedObjectsToReplace != null).
  
          // Drive the postOptimisticReplace method for the ManagedObjects to delete.
          if (managedObjectsToDelete != null) {
              for (java.util.Iterator managedObjectIterator = managedObjectsToDelete.iterator(); managedObjectIterator.hasNext();) {
                  ManagedObject managedObject = (ManagedObject) managedObjectIterator.next();
                  managedObject.postDelete(transaction, false);
              } // for ... managedObjectsToDelete.
          } // if (managedObjectsToDelete != null).
      }
docs: optimisticReplace().