code: public NavigationCase getNavigationCase(FacesContext facesContext, String fromAction, String outcome)
      {
          NavigationContext navigationContext = new NavigationContext();
          try
          {
              return getNavigationCommand(facesContext, navigationContext, fromAction, outcome, null);
          }
          finally
          {
              navigationContext.finish(facesContext);
          }
      }
docs: Returns the navigation case that applies for the given action and outcome