@Override
 public void deleteEvent(Event e) {
   try {
     XWikiContext context = getXWikiContext();
     ActivityStreamPlugin plugin = getPlugin(context);
     plugin.getActivityStream().deleteActivityEvent(convertEventToActivity(e), context);
   } catch (ActivityStreamException ex) {
     // Unlikely; nothing we can do
   }
 }
 @Override
 public EventGroup getRelatedEvents(Event e) {
   XWikiContext context = getXWikiContext();
   ActivityStreamPlugin plugin = getPlugin(context);
   EventGroup result = new EventGroup();
   try {
     result.addEvents(
         convertActivitiesToEvents(
                 plugin.getActivityStream().getRelatedEvents(convertEventToActivity(e), context))
             .toArray(new Event[0]));
   } catch (ActivityStreamException ex) {
     // Should not happen, and the eventual error was already reported downstream
   }
   return result;
 }