docs: public static Object toObject(String xml, String encoding, Class<?> cls) throws UnmarshalException {
  		
  		if (xml == null || xml.trim().equals("")) {
  			throw new UnmarshalException("XML String is Empty");
  		}
  		
  		Object object = null;
  		
  		Unmarshaller bind = null;
  		
  		try {
  			bind = new XmlUnmarshaller(new ByteArrayInputStream(xml.getBytes(encoding)));
  		} catch (UnsupportedEncodingException e) {
  			throw new UnmarshalException(e);
  		}
  		
  		if (bind != null) {
  			bind.setRootClass(cls);
  			object = bind.unmarshal();
  		}
  		
  		return object;
  	}