code: 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;
     }
docs: Get the {@link UrlMapping} corresponding with the given mapping id.
  
  @param id Mapping id
  @return PrettyUrlMapping Corresponding mapping