*/
@SuppressWarnings("unchecked")
private static <T> List<T> read(HttpServletRequest request, ReadType type)
throws Exception {
if (!ServletFileUpload.isMultipartContent(request)) {
throw new FileUploadException(
"Request does not contain a multipart/form-data");
}
List<T> rows = new ArrayList<T>();
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);