code: public PageFlowController getPageFlowForPath( RequestContext context, String path )
          throws InstantiationException, IllegalAccessException
      {
          HttpServletRequest request = context.getHttpRequest();
          HttpServletResponse response = context.getHttpResponse();
          PageFlowController cur = PageFlowUtils.getCurrentPageFlow( request, getServletContext() );
          String parentDir = PageFlowUtils.getModulePathForRelativeURI( path );
  
          //
          // Reinitialize transient data that may have been lost on session failover.
          //
          if ( cur != null )
              cur.reinitialize( request, response, getServletContext() );
  
          //
          // If there's no current PageFlow, or if the current PageFlowController has a module path that
          // is incompatible with the current request URI, then create the appropriate PageFlowController.
          //
          if ( cur == null || ! PageFlowUtils.getModulePathForRelativeURI( cur.getURI() ).equals( parentDir ) )
          {
              String className = null;
              try
              {
                  className = InternalUtils.getFlowControllerClassName( parentDir, request, getServletContext() );
                  return className != null ? createPageFlow( context, className ) : null;
              }
              catch ( ClassNotFoundException e )
              {
                  if ( LOG.isInfoEnabled() )
                      LOG.info("No page flow exists for path " + path +
                          ".  Unable to load class \"" + className + "\".  Cause: " + e, e);
                  return null;
              }
          }
  
          return cur;
      }
docs: Get the page flow instance that should be associated with the given path.  If it doesn't exist, create it.
  If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be
  stored as the current page flow.
  
  @param context a {@link RequestContext} object which contains the current request and response.
  @param path a <strong>webapp-relative</strong> path.  The path should not contain the webapp context path.
  @return the {@link PageFlowController} for the given path, or <code>null</code> if none was found.