code: private Object getObject(final Element el,
                             final Class cl) throws Throwable {
      Class objClass = cl;
  
      /* Element may have type attribute */
      String type = XmlUtil.getAttrVal(el, "type");
  
      if ((type == null) && (objClass == null)) {
        error("Must supply a class or have type attribute");
        return null;
      }
  
      if (objClass == null) {
        objClass = Class.forName(type);
      }
  
      return objClass.newInstance();
    }
docs: /* ====================================================================
  Private from xml methods
  ====================================================================