docs: @Programmatic
      public void purgeProcessed() {
          // REVIEW: this is not particularly performant.
          // much better would be to go direct to the JDO API.
          List<PublishedEvent> processedEvents = findProcessed();
          for (PublishedEvent publishedEvent : processedEvents) {
              publishedEvent.delete();
          }
      }