@Override
 public void processModule(Module module) {
   if (module instanceof FacetModule) {
     ((FacetModule) module).addFacetProcessor(FacetedDateHistogramFacetProcessor.class);
     ((FacetModule) module).addFacetProcessor(HashedStringFacetProcessor.class);
   }
   if (module instanceof ActionModule) {
     ((ActionModule) module)
         .registerAction(
             CacheStatsPerFieldAction.INSTANCE, TransportCacheStatsPerFieldAction.class);
   }
   if (module instanceof RestModule) {
     ((RestModule) module).addRestAction(RestCacheStatsPerFieldAction.class);
   }
 }
 public void onModule(RestModule module) {
   module.addRestAction(ArrayformatRestSearchAction.class);
 }
 public void onModule(RestModule restModule) {
   restModule.addRestAction(RestSuggestAction.class);
   restModule.addRestAction(RestRefreshSuggestAction.class);
   restModule.addRestAction(RestStatisticsAction.class);
 }
 /* Invoked on component assembly. */
 public void onModule(RestModule restModule) {
   if (pluginEnabled) {
     restModule.addRestAction(RestClusteringAction.class);
     restModule.addRestAction(ListAlgorithmsAction.RestListAlgorithmsAction.class);
   }
 }
 public void onModule(RestModule module) {
   module.addRestAction(RestIngestAction.class);
 }