json.writeMapEntry("context", context);
List<Event> clientEvents = Aura.getContextService().getCurrentContext().getClientEvents();
if (clientEvents != null && !clientEvents.isEmpty()) {
json.writeMapEntry("events", clientEvents);
}
json.writeMapEnd();
} finally {
loggingService.stopTimer(LoggingService.TIMER_SERIALIZATION_AURA);
loggingService.stopTimer(LoggingService.TIMER_SERIALIZATION);
}
} finally {