private static String resolvePropertyValue(final PropertyResolver propertyResolver, final PropertyCondition condition) {
        val spelResolver = SpringExpressionLanguageValueResolver.getInstance();
        try {
            val result = propertyResolver.getProperty(condition.getPropertyName(), condition.getDefaultValue());
            return spelResolver.resolve(result);
        } catch (final IllegalArgumentException e) {
            val placeholder = StringUtils.substringBetween(e.getMessage(), "\"", "\"");
            val matcher = EXPRESSION_PATTERN.matcher(placeholder);
            if (matcher.find()) {
                val match = matcher.group();
                val result = spelResolver.resolve(match);
                return StringUtils.isNotBlank(result)
                    ? placeholder.replaceAll(matcher.pattern().pattern(), result)
                    : placeholder;
            }
            return null;
        }
    }
This is {@link CompoundCondition}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/beans/CompoundCondition.java