String fieldName = "pulledFileUpload"; // not sure how to get the real value in here...
String contentType = method.getResponseHeader("Content-Type").getValue();
String name = url.getPath();
boolean isFormField = true;
DiskFileItemFactory factory = new DiskFileItemFactory();
FileItem fileItem = factory.createItem(fieldName, contentType, isFormField, name);
IOUtils.copy(method.getResponseBodyAsStream(), fileItem.getOutputStream());
return new PulledFileUpload(url, fileItem);
} catch (MalformedURLException e) {
ConversionException ex = new ConversionException("Can't convert " + value + " into a URL.", e);