class STSInstanceConfig {

    @Override
    public boolean equals(Object other) {
        if (other instanceof STSInstanceConfig) {
            STSInstanceConfig otherConfig = (STSInstanceConfig)other;
            return  Objects.equal(saml2Config, otherConfig.getSaml2Config()) &&
                    (persistIssuedTokensInCTS == otherConfig.persistIssuedTokensInCTS()) &&
                    Objects.equal(openIdConnectTokenConfig, otherConfig.getOpenIdConnectTokenConfig());
        }
        return false;
    }

    protected  STSInstanceConfig(STSInstanceConfigBuilderBase<?> builder);

}