code: public static PageFlowController getCurrentPageFlow( HttpServletRequest request, ServletContext servletContext )
      {
          ActionResolver cur = getCurrentActionResolver( request, servletContext );
  
          if (cur != null && cur.isPageFlow()) {
              PageFlowController pfc = (PageFlowController) cur;
              pfc.reinitializeIfNecessary(request, null, servletContext);
              return pfc;
          }
  
          return null;
      }
docs: Get the current {@link PageFlowController}.
  
  @param request the current HttpServletRequest.
  @param servletContext the current ServletContext.
  @return the current PageFlowController from the user session, or <code>null</code> if there is none.