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