code: public DOMSource createDOMSource(DocumentSource src)
      {
          try
          {
              Constructor<? extends DOMSource> constr = getDOMSourceClass().getConstructor(DocumentSource.class);
              return constr.newInstance(src);
          } catch (Exception e) {
              log.warn("BoxFactory: Warning: could not create the DOMSource instance: " + e.getMessage());
              return null;
          }
      }
docs: Creates a new instance of the {@link org.fit.cssbox.io.DOMSource} class registered in the browser configuration
  ({@link org.fit.cssbox.layout.BrowserConfig}).
  @param src the document source to be given to the DOM source.
  @return the DOM source.