code: public ConfigBase fromXml(final Element rootEl,
                              final Class cl) throws ConfigException {
      try {
        final ConfigBase cb = (ConfigBase)getObject(rootEl, cl);
  
        if (cb == null) {
          // Can't do this
          return null;
        }
  
        for (final Element el: XmlUtil.getElementsArray(rootEl)) {
          populate(el, cb, null, null);
        }
  
        return cb;
      } catch (final ConfigException ce) {
        throw ce;
      } catch (final Throwable t) {
        throw new ConfigException(t);
      }
    }
docs: XML root element must have type attribute
  
  @param rootEl - root of parsed document
  @param cl class of object or null
  @return parsed notification or null
  @throws ConfigException on error