boolean isSameContainer(Container containerToCompare) {
    //@formatter:off
    return Objects.equals(this.isCacheable(), containerToCompare.isCacheable())
        && Objects.equals(this.isEncrypted(), containerToCompare.isEncrypted())
        && Objects.equals(this.isMediaScanDisabled(), containerToCompare.isMediaScanDisabled())
        && Objects.equals(this.isTtlRequired(), containerToCompare.isTtlRequired())
        && Objects.equals(this.getStatus(), containerToCompare.getStatus())
        && Objects.equals(this.getReplicationPolicy(), containerToCompare.getReplicationPolicy())
        && Objects.equals(this.isSecurePathRequired(), containerToCompare.isSecurePathRequired())
        && Objects.equals(this.isBackupEnabled(), containerToCompare.isBackupEnabled())
        && Objects.equals(this.getContentTypeWhitelistForFilenamesOnDownload(), containerToCompare.getContentTypeWhitelistForFilenamesOnDownload())
        && Objects.equals(this.isAccountAclOverridden(), containerToCompare.isAccountAclOverridden())
        && Objects.equals(this.isWorkflowMigrationEnabled(), containerToCompare.isWorkflowMigrationEnabled());
    //@formatter:on
  }
Check if passed in container is same with current one.
@param containerToCompare the {@link Container} to compare.
@return {@code true} if two containers are equivalent. {@code false} otherwise.
ambry-api/src/main/java/com/github/ambry/account/Container.java