* @throws IOException in case of I/O errors
* @throws ServiceException in case of Google Data API errors
*/
protected DocumentListEntry upload(File file, URL targetFolderUri) throws IOException, ServiceException {
StopWatch watch = new StopWatch();
watch.start();
logger.info("Uploading content for: " + file.getName());
DocumentListEntry newDocument = new DocumentListEntry();
String mimeType = DocumentListEntry.MediaType.fromFileName(file.getName()).getMimeType();
newDocument.setFile(file, mimeType);
newDocument.setTitle(new PlainTextConstruct(file.getName()));