code: private Object fromClass(final Class cl) throws Throwable {
      if (cl == null) {
        error("Must supply a class or have type attribute");
        return null;
      }
  
      return cl.newInstance();
    }
docs: /* ====================================================================
  Private from xml methods
  ====================================================================