class RequireAnyAttributeAuthorizer extends AbstractRequireAnyAuthorizer<String> {
    private final String valueToMatch;

    /**
     * <p>Constructor for RequireAnyAttributeAuthorizer.</p>
     */
    public RequireAnyAttributeAuthorizer() {
        this(".+");
    }

    /**
     * <p>Constructor for RequireAnyAttributeAuthorizer.</p>
     *
     * @param valueToMatch a {@link String} object
     */
    public RequireAnyAttributeAuthorizer(final String valueToMatch) {
        this.valueToMatch = valueToMatch;
    }

    /** {@inheritDoc} */
    @Override
    protected boolean check(final WebContext context, final SessionStore sessionStore, final UserProfile profile, final String element) {<FILL_FUNCTION_BODY>}

    /**
     * <p>requireAnyAttribute.</p>
     *
     * @param valueToMatch a {@link String} object
     * @return a {@link RequireAnyAttributeAuthorizer} object
     */
    public static RequireAnyAttributeAuthorizer requireAnyAttribute(String valueToMatch) {
        return new RequireAnyAttributeAuthorizer(valueToMatch);
    }
}

        if (!profile.containsAttribute(element)) {
            return false;
        }

        if (CommonHelper.isBlank(this.valueToMatch)) {
            return true;
        }

        val attributeValues = profile.getAttribute(element);
        if (attributeValues instanceof Collection) {
            return Collection.class.cast(attributeValues)
                    .stream()
                    .anyMatch(v -> v.toString().matches(this.valueToMatch));
        }
        return attributeValues.toString().matches(this.valueToMatch);
    
<methods>public non-sealed void <init>() <variables>