private static Optional<GoogleRecaptchaProperties> evaluateResult(final boolean result,
                                                                      final GoogleRecaptchaProperties properties) {
        return result ? Optional.of(properties) : Optional.empty();
    }
This is {@link DefaultCaptchaActivationStrategy}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-captcha-core/src/main/java/org/apereo/cas/web/DefaultCaptchaActivationStrategy.java