code: public String computeDynaViewId(final FacesContext facesContext)
     {
        PrettyContext context = PrettyContext.getCurrentInstance(facesContext);
        UrlMapping urlMapping = context.getCurrentMapping();
  
        return calculateDynaviewId(facesContext, urlMapping);
     }
docs: Calculate the Faces ViewId to which this request URI resolves. This method will recursively call any dynamic
  mapping viewId functions as needed until a String viewId is returned, or supplied by a static mapping.
  <p>
  This phase does not support FacesNavigation or PrettyRedirecting. Its SOLE purpose is to resolve a viewId.
  <p>
  <i><b>Note:</b> Precondition - parameter injection must take place before this</i>
  <p>
  <i>Postcondition - currentViewId is set to computed View Id</i>
  
  @param facesContext2
  
  @return JSF viewID to which this request resolves.