code: @Deactivate
      protected void deactivate(int reason) {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              Tr.event(tc, "File monitor service deactivated", "reason=" + reason, fileMonitors);
          }
  
          for (Map.Entry<ServiceReference<FileMonitor>, MonitorHolder> entry : fileMonitors.entrySet()) {
              entry.getValue().destroy();
          }
          fileMonitors.clear();
          this.cContext = null;
      }
docs: DS-driven de-activation