saveAppMessages(request, messages, APP_ERROR_KEY);
// Remove any messages attribute if none are required if ((messages == null) || messages.isEmpty()) { request.removeAttribute(key); return; } // Save the messages we need request.setAttribute(key, messages);
saveAppMessages(request, messages, APP_WARNING_KEY);