@Override
    protected boolean supports(final RegisteredServiceAttributeReleasePolicyContext context) {
        val serviceAttributes = (List) context.getService().getAttributes().getOrDefault("owner", List.of());
        return super.supports(context) && serviceAttributes.contains(SamlAttributeQueryTicket.class.getName());
    }
This is {@link AttributeQueryAttributeReleasePolicy}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/AttributeQueryAttributeReleasePolicy.java