private List<T> models = new ArrayList<>();
public static <T extends Model> Page<T> newInstance(Class<T> modelClass, InputStream in) {
XMLFactory factory = new XMLFactory(Page.class, modelClass);
try {
return factory.unmarshal(in);
} catch (Exception e) {
LOG.error("生成对象出错",e);
}
return null;
}