code: @Override
      @Transactional
      public Snapshot transferToStorageComplete(String snapshotId)
          throws SnapshotException {
          try {
              Snapshot snapshot = getSnapshot(snapshotId);
              snapshot = changeSnapshotStatus(snapshot, SnapshotStatus.CLEANING_UP, "");
  
              File snapshotDir = new File(
                  ContentDirUtils.getDestinationPath(snapshot.getName(),
                                                     BridgeConfiguration.getContentRootDir()));
  
              File zipFile = zipMetadata(snapshotId, snapshotDir);
  
              DuracloudEndPointConfig source = snapshot.getSource();
  
              ContentStore store = getContentStore(source);
  
              ensureMetadataSpaceExists(store);
  
              String zipChecksum = createChecksumGenerator().generateChecksum(zipFile);
  
              try {
                  new Retrier(4, 1000, 2).execute(new Retriable() {
                      public Object retry() throws Exception {
                          try (FileInputStream zipStream = new FileInputStream(zipFile)) {
                              return store.addContent(Constants.SNAPSHOT_METADATA_SPACE,
                                                      zipFile.getName(),
                                                      zipStream,
                                                      zipFile.length(),
                                                      "application/zip",
                                                      zipChecksum,
                                                      null);
                          }
                      }
                  });
              } catch (Exception ex) {
                  log.error("failed to upload snapshot zip ("
                            + zipFile.getAbsolutePath() + ") to duracloud: " + ex.getMessage(), ex);
                  throw new Exception(ex);
              } finally {
                  zipFile.delete();
              }
  
              FileUtils.deleteDirectory(snapshotDir);
  
              String spaceId = source.getSpaceId();
              // Call DuraCloud to clean up snapshot
              getSnapshotTaskClient(source).cleanupSnapshot(spaceId);
              log.info("successfully initiated snapshot cleanup on DuraCloud for snapshotId = "
                       + snapshotId + "; spaceId = " + spaceId);
  
              return snapshot;
          } catch (Exception e) {
              String message = "failed to initiate snapshot clean up: " + e.getMessage();
              log.error(message, e);
              throw new SnapshotManagerException(e.getMessage());
          }
      }
docs: /* (non-Javadoc)
  @see org.duracloud.snapshot.service.SnapshotManager#transferToStorageComplete(java.lang.String)