code: void updateFileMonitor(Collection<String> filesToMonitor) {
          if (monitoredFiles.equals(filesToMonitor)) {
              return;
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Updating FileMonitor with a new set of files to monitor: " + filesToMonitor);
          }
  
          monitoredFiles = filesToMonitor;
  
          Hashtable<String, Object> properties = getFileMonitorProperties();
          serviceRegistration.setProperties(properties);
      }
docs: /*
  Update FileMonitor service with a new set of files to monitor.