private String[] resolveMessagesFromBundleOrDefault(final String[] resolved, final Exception e) {
        val locale = LocaleContextHolder.getLocale();
        val defaultKey = String.join("_",
            StringUtils.splitByCharacterTypeCamelCase(e.getClass().getSimpleName())).toUpperCase(locale);
        return Stream.of(resolved)
            .map(key -> toResourceString(context.getMessage(key, null, defaultKey, locale)))
            .filter(Objects::nonNull)
            .toArray(String[]::new);
    }
This is {@link MessageBundleAwareResourceResolver}.

@author Misagh Moayyed
@since 1.0
core/cas-server-core-audit-api/src/main/java/org/apereo/inspektr/audit/spi/support/MessageBundleAwareResourceResolver.java