public DocumentListEntry createDocumentFile(String type, String title, String folder) throws IOException, ServiceException {
DocumentListEntry newEntry = null;
if (type.equals("document")) {
newEntry = new DocumentEntry();
} else if (type.equals("presentation")) {
newEntry = new PresentationEntry();
} else if (type.equals("spreadsheet")) {
newEntry = new com.google.gdata.data.docs.SpreadsheetEntry();
}
newEntry.setTitle(new PlainTextConstruct(title));
DocumentListEntry folderEntry = findDocumentFolderEntry(folder);