This line:
FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);
Can be changed by another code in any configuration files? I want to avoid typing this line whenever I need to redirect from code whit this line:
FacesContext.getCurrentInstance().getExternalContext().redirect("errorApp");
Regards.