@Override public void terminateAnyRestoreSessions(StorageSystem storage,BlockObject from,URI volume,TaskCompleter taskCompleter) throws Exception {
  BlockObject blockObject=BlockObject.fetch(_dbClient,volume);
  Collection<CIMObjectPath> syncObjects=null;
  if (storage.checkIfVmax3()) {
    syncObjects=_helper.getSettingsDefineStatePaths(storage,blockObject,(BlockSnapshot)from);
  }
 else {
    syncObjects=getRestoredOrMixedStateSyncObjects(storage,blockObject);
  }
  for (  CIMObjectPath syncObject : syncObjects) {
    resumeSnapshot(storage,from,blockObject,syncObject,taskCompleter);
  }
}

@ Override public void terminateAnyRestoreSessions ( StorageSystem storage , BlockObject from , URI volume , TaskCompleter taskCompleter ) throws Exception { BlockObject blockObject = BlockObject . fetch ( _dbClient , volume ) ; Collection < CIMObjectPath > syncObjects = null ; if ( storage . checkIfVmax3 ( ) ) { syncObjects = _helper . getSettingsDefineStatePaths ( storage , blockObject , ( BlockSnapshot ) from ) ; } else { syncObjects = getRestoredOrMixedStateSyncObjects ( storage , blockObject ) ; } for ( CIMObjectPath syncObject : syncObjects ) { resumeSnapshot ( storage , from , blockObject , syncObject , taskCompleter ) ; } }
given a snapshot and a uri of its parent volume , look up any existing restore sessions and terminate them .
