docsService = new DocsService(APPLICATION_NAME);
DocsCredentials credentials = DocsPlugin.getUserCredentials();
if (credentials == null)
throw new AuthenticationException("No username / password provided.");
spreadsheetService.setUserCredentials(credentials.getUserName(), credentials.getPassword());
docsService.setUserCredentials(credentials.getUserName(), credentials.getPassword());
}
catch (AuthenticationException ae)