code: public static FacesServletMapping createExtensionMapping(
          String extension)
      {
          FacesServletMapping mapping = new FacesServletMapping();
          mapping.setExtension(extension);
          return mapping;
      }
docs: Creates a new FacesServletMapping object using extension mapping.
  
  @param path The extension (".jsf", for example) which has been
  specified in the url-pattern of the FacesServlet mapping.
  @return a newly created FacesServletMapping