final InputStreamContent params = new InputStreamContent(FILE, new ByteArrayInputStream(data));
params.setLength(data.length);
Update updater = service.files().update(item.getRemoteIdentifier(), driveItem, params);
MediaHttpUploader uploader = updater.getMediaHttpUploader();
prepareUploader(uploader, data);
driveItem = updater.execute();
}
if (driveItem == null) {
throw new CloudsyncException("Could not update item '" + item.getPath() + "'");
} else if (driveItem.getLabels().getTrashed()) {
throw new CloudsyncException("Remote item '" + item.getPath() + "' [" + driveItem.getId() + "] is trashed\ntry to run with --nocache");