}
public ActionForward deleteMessage(final ActionMapping mapping, final ActionForm actionForm,
final HttpServletRequest request, final HttpServletResponse response) {
final String messageParam = request.getParameter("messagesId");
final Message message =
messageParam != null && !messageParam.isEmpty() ? FenixFramework.<Message> getDomainObject(messageParam) : null;
if (message == null) {
return viewSentEmails(mapping, actionForm, request, response);
} else {
final Sender sender = message.getSender();
MessageDeleteService.delete(message);
return viewSentEmails(mapping, request, sender.getExternalId());
}
}