* @throws ServiceException If the service is unable to handle the request.
* @throws IOException Error communicating with the server.
*/
private static CalendarEventEntry addReminder(CalendarEventEntry entry,
int numMinutes, Method methodType) throws ServiceException, IOException {
Reminder reminder = new Reminder();
reminder.setMinutes(numMinutes);
reminder.setMethod(methodType);
entry.getReminder().add(reminder);
return entry.update();
}