code: private boolean spaceExists(final StorageProvider store,
                                  final String spaceId)
          throws TaskExecutionFailedException {
          try {
              return new Retrier().execute(new Retriable() {
                  @Override
                  public Boolean retry() throws Exception {
                      // The actual method being executed
                      store.getSpaceProperties(spaceId);
                      return true;
                  }
              });
          } catch (NotFoundException nfe) {
              return false;
          } catch (Exception e) {
              String msg = "Error attempting to check if space exists: " +
                           e.getMessage();
              throw new DuplicationTaskExecutionFailedException(
                  buildFailureMessage(msg), e);
          }
      }
docs: Determines if a space in the given store exists.
  
  @param store   the storage provider in which to check the space
  @param spaceId space to check
  @return true if space exists, false otherwise