@Override
    public String interpolate(final String s, final Context context, final Locale locale) {
        try {
            return this.messageSource.getMessage(s, context.getConstraintDescriptor()
                .getAttributes().values().toArray(ArrayUtils.EMPTY_OBJECT_ARRAY), locale);
        } catch (final NoSuchMessageException e) {
            return this.defaultMessageInterpolator.interpolate(s, context, locale);
        }
    }
Configures the {@link jakarta.validation.Validator} to check the Spring Messages.

@author Scott Battaglia
@since 3.4
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/SpringAwareMessageMessageInterpolator.java