}
public DocumentListEntry createNewDocument(String title, String content) throws ServiceException {
try {
URL feedUrl = new URL("https://docs.google.com/feeds/default/private/full/");
DocumentListEntry newEntry = new DocumentEntry();
newEntry.setTitle(new PlainTextConstruct(title));
newEntry = client().insert(feedUrl, newEntry);
newEntry.setMediaSource(new MediaByteArraySource(content.getBytes(), "text/html"));
newEntry = newEntry.updateMedia(true);
return newEntry;
} catch (MalformedURLException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeException(e);