* @throws ServiceException If the service is unable to handle the request.
* @throws IOException Error communicating with the server.
*/
private static void updateAccessControl(CalendarService service,
String userEmail, AclRole newRole) throws ServiceException, IOException {
AclFeed aclFeed = service.getFeed(aclFeedUrl, AclFeed.class);
for (AclEntry aclEntry : aclFeed.getEntries()) {
if (userEmail.equals(aclEntry.getScope().getValue())) {
aclEntry.setRole(newRole);
AclEntry updatedEntry = aclEntry.update();
System.out.println("Updated user's access control:");