protected void indexEntity(final EventInfo ei) throws CalFacadeException {
    if (ei.getEvent().getRecurrenceId() != null) {
      // Cannot index single instance
      warn("Tried to index a recurrence instance");
      return;
    }

    if (!getForRestore()) {
      getIndexer(ei.getEvent()).indexEntity(ei);
    }
  }
  protected void unindexEntity(final EventInfo ei) throws CalFacadeException {
    final BwEvent ev = ei.getEvent();

    if (ev.getRecurrenceId() != null) {
      // Cannot index single instance
      warn("Tried to unindex a recurrence instance");
      return;
    }

    getIndexer(ev).unindexEntity(ev.getHref());
  }