@Override
    protected Map<String, List<Object>> getAttributesForSamlRegisteredService(
        final Map<String, List<Object>> attributes,
        final SamlRegisteredServiceCachingMetadataResolver resolver,
        final SamlRegisteredServiceMetadataAdaptor facade,
        final EntityDescriptor entityDescriptor,
        final RegisteredServiceAttributeReleasePolicyContext context) {
        val pattern = RegexUtils.createPattern(this.entityIds);
        val entityID = entityDescriptor.getEntityID();
        val matcher = pattern.matcher(entityID);
        var matched = fullMatch ? matcher.matches() : matcher.find();
        LOGGER.debug("Pattern [{}] matched against [{}]? [{}]",
            pattern.pattern(), entityID, BooleanUtils.toStringYesNo(matched));
        if (reverseMatch) {
            matched = !matched;
            LOGGER.debug("Reversed match to be [{}]", BooleanUtils.toStringYesNo(matched));
        }
        return matched ? authorizeReleaseOfAllowedAttributes(context, attributes) : new HashMap<>();
    }
This is {@link PatternMatchingEntityIdAttributeReleasePolicy}.

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