private Optional<FailoverMetadata> getFailoverMetadata(SamzaResourceRequest resourceRequest) {
    for (FailoverMetadata failoverMetadata : this.failovers.values()) {
      if (failoverMetadata.containsResourceRequest(resourceRequest)) {
        return Optional.of(failoverMetadata);
      }
    }
    return Optional.empty();
  }
Check if a SamzaResourceRequest was issued for a failover.
samza-core/src/main/java/org/apache/samza/clustermanager/StandbyContainerManager.java