code: public static String encodeComponentWithSurroundingDiv(final FacesContext context,
                                                             final UIComponent component) throws IOException {
          return encodeComponentWithSurroundingDiv(context, component, null);
      }
docs: Encodes complete component by calling {@link UIComponent#encodeAll(FacesContext)}.
  
  @param component component
  @param context   {@link FacesContext}
  @return the rendered string.
  @throws IOException thrown by writer