}
private void handleOutcome(final FacesContext facesContext, final JbpmJsfContextImpl jbpmJsfContext) {
final NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler();
if (jbpmJsfContext.isError()) {
navigationHandler.handleNavigation(facesContext, jbpmJsfContext.getOutcomeActionName(), "error");
} else {
final String outcome = jbpmJsfContext.getOutcome();
if (outcome != null) {
navigationHandler.handleNavigation(facesContext, jbpmJsfContext.getOutcomeActionName(), outcome);
}