code: public static final void setInstance(FaceletFactory factory)
      {
          if (factory == null)
          {
              instance.remove();
          }
          else
          {
              instance.set(factory);
          }
      }
docs: Set the static instance
  
  @param factory