config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/PrettyConfig.java
public UrlMapping getMappingById(String id)
   {
      if (id != null)
      {
         if (id.startsWith(PrettyContext.PRETTY_PREFIX))
         {
            id = id.substring(PrettyContext.PRETTY_PREFIX.length());
         }
         for (UrlMapping mapping : getMappings())
         {
            if (mapping.getId().equals(id))
            {
               return mapping;
            }
         }
      }
      return null;
   }
public UrlMapping getMappingById(String id)
   {
      if (id != null)
      {
         if (id.startsWith(PrettyContext.PRETTY_PREFIX))
         {
            id = id.substring(PrettyContext.PRETTY_PREFIX.length());
         }
         for (UrlMapping mapping : getMappings())
         {
            if (mapping.getId().equals(id))
            {
               return mapping;
            }
         }
      }
      return null;
   }
public UrlMapping getMappingById ( String id ) { if ( id != null ) { if ( id . startsWith ( PrettyContext . PRETTY_PREFIX ) ) { id = id . substring ( PrettyContext . PRETTY_PREFIX . length ( ) ) ; } for ( UrlMapping mapping : getMappings ( ) ) { if ( mapping . getId ( ) . equals ( id ) ) { return mapping ; } } } return null ; }
Get the {@link UrlMapping} corresponding with the given mapping id.

@param id Mapping id
@return PrettyUrlMapping Corresponding mapping
Get the { @link UrlMapping } corresponding with the given mapping id .