action.run();
} catch (AuraExecutionException x) {
Aura.getExceptionAdapter().handleException(x, action);
} finally {
context.setCurrentAction(oldAction);
loggingService.stopAction(aap);
}
loggingService.startTimer(LoggingService.TIMER_SERIALIZATION);
loggingService.startTimer(LoggingService.TIMER_SERIALIZATION_AURA);
try {
json.writeArrayEntry(action);