COMMONS-309 fix the way to create document object in FileUploadHandler