private void processStatisticableProvider(Statisticable provider) {
    String entityPrefix = provider.getEntityPrefix();
    String entityToolId = provider.getAssociatedToolId();
    String[] entityEventIds = provider.getEventKeys();

    // Build tool for Event Registry (List<ToolInfo>)
    ToolInfo tool = new ToolInfo(entityToolId);
    tool.setSelected(true);
    for (String eventId : entityEventIds) {
      EventInfo event = new EventInfo(eventId);
      event.setSelected(true);
      // Add to eventID -> entityProfider_prefix mapping
      eventIdToEPPrefix.put(eventId, entityPrefix);
      tool.addEvent(event);
    }
    eventRegistry.add(tool);

    // Set expired flag on EventRegistry to true
    setChanged();
    notifyObservers(EventRegistryService.NOTIF_EVENT_REGISTRY_EXPIRED);
  }
 public void run(Statisticable provider) {
   LOG.info("Statisticable capability registered with prefix: " + provider.getEntityPrefix());
   processStatisticableProvider(provider);
 }