FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, message, null);
context.addMessage(null, facesMessage);
result = "/Index.xhtml?faces-redirect=true";
ExternalContext externalContext = context.getExternalContext();
HttpServletRequest request = (HttpServletRequest) externalContext.getRequest();
request.logout();
}
catch (UserException userEx)
{
String key = "AccountPreferences.InternalDeleteErrorMessage";
logger.error(Messages.getLoggerString(key), userEx);