@Override
    public String[] resolveFrom(final JoinPoint joinPoint, final Object retval) {
        val auditFormat = AuditTrailManager.AuditFormats.valueOf(properties.getAuditFormat().name());
        val service = (Service) AopUtils.unWrapJoinPoint(joinPoint).getArgs()[1];
        val values = new HashMap<String, String>();
        values.put("ticketId", retval.toString());
        values.put("service", getServiceId(service));
        return new String[]{auditFormat.serialize(values)};
    }
Extracts the resource as a CAS service for the audit.

@author Scott Battaglia
@since 3.1.2
core/cas-server-core-audit-api/src/main/java/org/apereo/cas/audit/spi/resource/ServiceAuditResourceResolver.java