code: protected boolean evaluateLastAttemptAndSecondaryNotFound(RetryContext retryContext) {
          Utility.assertNotNull("retryContext", retryContext);
  
          // Retry interval of a request to a location must take the time spent sending requests
          // to other locations into account. For example, assume a request was sent to the primary
          // location first, then to the secondary, and then to the primary again. If it
          // was supposed to wait 10 seconds between requests to the primary and the request to
          // the secondary took 3 seconds in total, retry interval should only be 7 seconds. This is because,
          // in total, the requests will be 10 seconds apart from the primary locations' point of view.
          // For this calculation, current instance of the retry policy stores the time of the last
          // request to a specific location.
          if (retryContext.getLastRequestResult().getTargetLocation() == StorageLocation.PRIMARY) {
              this.lastPrimaryAttempt = retryContext.getLastRequestResult().getStopDate();
          }
          else {
              this.lastSecondaryAttempt = retryContext.getLastRequestResult().getStopDate();
          }
  
          // If a request sent to the secondary location fails with 404 (Not Found), it is possible
          // that the the asynchronous geo-replication for the resource has not completed. So, in case of 404 only in the secondary
          // location, the failure should still be retried.
          return (retryContext.getLastRequestResult().getTargetLocation() == StorageLocation.SECONDARY)
                  && (retryContext.getLastRequestResult().getStatusCode() == HttpURLConnection.HTTP_NOT_FOUND);
      }
docs: Determines the time of the last attempt to a storage location and returns a <code>boolean</code> that specifies
  if a request that was sent to the secondary location failed with 404.
  
  @param retryContext
  A {@link RetryContext} object that indicates the number of retries, last request's results, whether
  the next retry should happen in the primary or secondary location, and specifies the location mode.
  @return
  <code>true</code> if a request sent to the secondary location fails with 404 (Not Found).
  <code>false</code> otherwise.