stream = item.openStream();
if (item.isFormField()) {
parameters.put(item.getFieldName(),
Streams.asString(stream, "UTF-8"));
} else {
files.add(new FileItem(item,
StreamUtil.readFileStream(stream)));
}
}
} catch (FileUploadException e) {
logger.error(e.getMessage());