.getFeed(metafeedUrl, CalendarFeed.class);
// After accessing the meta-feed, get the ACL link for each calendar.
System.out.println("Access control lists for your calendars:");
for (CalendarEntry calEntry : calendarFeed.getEntries()) {
Link link = calEntry.getLink(AclNamespace.LINK_REL_ACCESS_CONTROL_LIST,
Link.Type.ATOM);
// For each calendar that exposes an access control list, retrieve its ACL
// feed. If link is null, then we are not the owner of that calendar
// (e.g., it is a public calendar) and its ACL feed cannot be accessed.
if (link != null) {
AclFeed aclFeed = service.getFeed(new URL(link.getHref()),
AclFeed.class);
System.out.println("\tCalendar \"" + calEntry.getTitle().getPlainText()
+ "\":");
for (AclEntry aclEntry : aclFeed.getEntries()) {
System.out.println("\t\tScope: Type=" + aclEntry.getScope().getType()