for(RequestEvent event: events) {
event.before(applicationContext, request, response);
}
ServletOutputStream output = null;
JsonProvider jsonProvider = null;
try {
output = response.getOutputStream();
jsonProvider = applicationContext.getManagedBean(JsonProvider.class);
} catch (Exception e) {
throw new RuntimeException(e);