/**
   * This function creates a set of ImageCopyService instances parented to the current service
   * instance.
   *
   * @param targetDataStoreSet
   * @param current
   * @return The number of batches created.
   */
  private void triggerCopyServices(Set<Datastore> targetDataStoreSet, State current) {
    if (targetDataStoreSet.isEmpty()) {
      ServiceUtils.logInfo(this, "No copies to trigger!");
      return;
    }

    for (Datastore targetDataStore : targetDataStoreSet) {
      triggerCopyService(current, targetDataStore.getId());
    }
  }