private static Set<String> printSidewikiEntries(SidewikiService service, URL feedUrl)
throws IOException, ServiceException {
Set<String> authors = new HashSet<String>();
// Send the request and receive the response.
SidewikiEntryFeed resultFeed = service.getFeed(feedUrl, SidewikiEntryFeed.class);
// Print each Sidewiki entry.
System.out.println(resultFeed.getTitle().getPlainText());
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
SidewikiEntry entry = resultFeed.getEntries().get(i);
printEntry(entry);
SidewikiAuthor author = (SidewikiAuthor) entry.getAuthors().get(0);
authors.add(author.getResourceId().getValue());
}
return authors;