code: static public <E> E create(String xml, Class<E> type) throws XmlBeanException, IOException, SAXException, InstantiationException, IllegalAccessException {
          Object obj = type.newInstance();
          configure(xml, obj);
          return (E)obj;
      }
docs: Creates a new object of the specified type configured by parsing the
  provided XML.<br/>
  The underlying XmlBean will start at the root of the XML and will access
  private fields as needed.
  @param xml The XML String containing the document to configure the object
  @param type The class to create a new object instance
  @return A new object configured by the XML
  @see XmlBean#configure(java.lang.String, java.lang.Object)