@Override
    public String[] resolveFrom(final JoinPoint auditableTarget, final Object retval) {
        val resources = super.resolveFrom(auditableTarget, retval);
        if (auditFormat == AuditTrailManager.AuditFormats.JSON) {
            return resources;
        }
        if (resources != null) {
            return Arrays.stream(resources)
                .map(r -> StringUtils.abbreviate(r, MAX_WIDTH))
                .toList()
                .toArray(ArrayUtils.EMPTY_STRING_ARRAY);
        }
        return null;
    }
This is {@link ShortenedReturnValueAsStringAuditResourceResolver}.

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