config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/PrettyConfig.java
public boolean isViewMapped(String viewId)
   {
      if (viewId != null)
      {
         viewId = viewId.trim();
         for (UrlMapping mapping : mappings)
         {
            if (viewId.equals(mapping.getViewId())
                     || (viewId.startsWith("/") && viewId.substring(1).equals(mapping.getViewId())))
            {
               return true;
            }
         }
      }
      return false;
   }
public boolean isViewMapped(String viewId)
   {
      if (viewId != null)
      {
         viewId = viewId.trim();
         for (UrlMapping mapping : mappings)
         {
            if (viewId.equals(mapping.getViewId())
                     || (viewId.startsWith("/") && viewId.substring(1).equals(mapping.getViewId())))
            {
               return true;
            }
         }
      }
      return false;
   }
Discover if the given ViewId is mapped by any {@link UrlMapping} specified in the current configuration.
<p>
<b>Note:</b>This will not match if a #{dynamicView.id} method is configured.

@return True if the ViewId is mapped, false if not.