code: private UIComponent createFacet(FacesContext context, UIComponent parent,
                                      String name, String newId) throws JspException {
  
          UIComponent component = createComponent(context, newId);
          parent.getFacets().put(name, component);
          created = true;
          return (component);
  
      }
docs: <p>Create a new child component using <code>createComponent</code>,
  initialize its properties, and add it to its parent as a facet.
  </p>
  @param context {@link FacesContext} for the current request
  @param parent Parent {@link UIComponent} of the new facet
  @param name Name of the new facet
  @param newId id of the new facet