protected List<String> buildConditionsAudiences(final SamlProfileBuilderContext context) {
        val audienceUrls = new ArrayList<String>(2);
        if (StringUtils.isNotBlank(context.getRegisteredService().getAssertionAudiences())) {
            val audiences = org.springframework.util.StringUtils.commaDelimitedListToSet(context.getRegisteredService().getAssertionAudiences());
            audienceUrls.addAll(audiences);
        } else {
            audienceUrls.add(context.getAdaptor().getEntityId());
        }
        return audienceUrls;
    }
Build conditions conditions.

@param context the context
@return the conditions
@throws SamlException the saml exception
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/conditions/SamlProfileSamlConditionsBuilder.java