code: public CompleteRestoreTaskResult completeRestore(String spaceId,
                                                       int daysToExpire)
          throws ContentStoreException {
          CompleteRestoreTaskParameters taskParams = new CompleteRestoreTaskParameters();
          taskParams.setSpaceId(spaceId);
          taskParams.setDaysToExpire(daysToExpire);
  
          String taskResult =
              contentStore.performTask(SnapshotConstants.COMPLETE_RESTORE_TASK_NAME,
                                       taskParams.serialize());
          return CompleteRestoreTaskResult.deserialize(taskResult);
      }
docs: {@inheritDoc}