code: protected void recordAuditAction(final HttpServletRequest request, final String actionName) {
          val userToUse = getUsernameParameterFromRequest(request);
          val clientInfo = ClientInfoHolder.getClientInfo();
          val resource = StringUtils.defaultString(request.getParameter(CasProtocolConstants.PARAMETER_SERVICE), "N/A");
          val context = new AuditActionContext(
              userToUse,
              resource,
              actionName,
              configurationContext.getApplicationCode(),
              DateTimeUtils.dateOf(ZonedDateTime.now(ZoneOffset.UTC)),
              clientInfo.getClientIpAddress(),
              clientInfo.getServerIpAddress());
          LOGGER.debug("Recording throttled audit action [{}}", context);
          configurationContext.getAuditTrailExecutionPlan().record(context);
      }
docs: Records an audit action.
  
  @param request    The current HTTP request.
  @param actionName Name of the action to be recorded.