private Optional<FailoverMetadata> getFailoverMetadata(String activeContainerResourceID) {
    return this.failovers.containsKey(activeContainerResourceID) ? Optional.of(
        this.failovers.get(activeContainerResourceID)) : Optional.empty();
  }
Check if a activeContainerResource has failover-metadata associated with it
samza-core/src/main/java/org/apache/samza/clustermanager/StandbyContainerManager.java