public String getDisplayName(final String locale) {
        if (this.uiInfo != null) {
            val displayName = getLocalizedValues(locale, this.uiInfo.getDisplayNames());
            return Optional.ofNullable(displayName).orElseGet(super::getDisplayName);
        }
        return super.getDisplayName();
    }
Gets localized displayName.

@param locale browser preferred language
@return the displayName
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java