* @throws ServiceException If an application-level protocol error occurs
* while trying to communicate with Spreadsheets
*/
private SpreadsheetEntry getSpreadsheetWithKey(String key) throws IOException, ServiceException {
URL metafeedUrl = new URL("http://spreadsheets.google.com/feeds/spreadsheets/private/full");
SpreadsheetFeed spreadsheetFeed = spreadsheetService.getFeed(
metafeedUrl,
SpreadsheetFeed.class);
List<SpreadsheetEntry> spreadsheets = spreadsheetFeed.getEntries();
for (SpreadsheetEntry spreadsheet : spreadsheets) {
if (spreadsheet.getKey().equals(key)) {
return spreadsheet;
}
}