code: @SuppressWarnings("unchecked")
  	public static <T> T readObjectFromXml(InputSource source) throws IOException {
  		Object result = null;
  		XMLDecoder xmldec = null;
  		try {
  			xmldec = new XMLDecoder(source);
  			result = xmldec.readObject();
  		} finally {
  			IoUtil.close(xmldec);
  		}
  		return (T) result;
  	}
docs: 从XML中读取对象 Reads serialized object from the XML file.
  
  @param <T> 对象类型
  @param source {@link InputSource}
  @return 对象
  @throws IOException IO异常
  @since 3.2.0