FileItem fileItem = fileFactory.createItem(item.getFieldName(),
item.getContentType(), item.isFormField(),
overrideFilename, authenticated.getScreenName());
LOG.finest("Writing to file: "+((GEDCOMFileItem)fileItem).getFullPath());
try {
Streams.copy(item.openStream(), fileItem.getOutputStream(),
true);
} catch (IOException e) {
throw new IOException(
"Processing of " + FileUploadBase.MULTIPART_FORM_DATA
+ " request failed. " + e.getMessage());