} catch (IllegalArgumentException e) {
LOG.error("Invalid audit parameters, aborting...", e);
}
if (auditLoggerName != null) {
SyncopeLogger syncopeLogger = loggerDAO.find(auditLoggerName.toLoggerName());
if (syncopeLogger != null && syncopeLogger.getLevel() == LoggerLevel.DEBUG) {
StringBuilder auditMessage = new StringBuilder();
final SecurityContext ctx = SecurityContextHolder.getContext();
if (ctx != null && ctx.getAuthentication() != null) {