final UIViewRoot viewRoot = viewHandler.createView(facesContext, outcome);
facesContext.setViewRoot(viewRoot);
final ExternalContext externalContext = facesContext.getExternalContext();
try {
externalContext.redirect(
externalContext.encodeRedirectURL(externalContext.getRequestContextPath() + "/faces" + outcome,
Collections.<String, List<String>>emptyMap()));
} catch (final IOException e) {
// not nice?
facesContext.renderResponse();
}