code:         public void run() {
              try {
                  LOGGER.info("Initiating a re-keying of secrets. See "+getLogFile());
                  StreamTaskListener listener = new StreamTaskListener(getLogFile());
                  try {
                      PrintStream log = listener.getLogger();
                      log.println("Started re-keying " + new Date());
                      int count = rewriter.rewriteRecursive(Jenkins.getInstance().getRootDir(), listener);
                      log.printf("Completed re-keying %d files on %s\n",count,new Date());
                      new RekeySecretAdminMonitor().done.on();
                      LOGGER.info("Secret re-keying completed");
                  } catch (Exception e) {
                      LOGGER.log(Level.SEVERE, "Fatal failure in re-keying secrets",e);
                      e.printStackTrace(listener.error("Fatal failure in rewriting secrets"));
                  }
              } catch (IOException e) {
                  LOGGER.log(Level.SEVERE, "Catastrophic failure to rewrite secrets",e);
              }
          }
      }
  
      private static final Logger LOGGER = Logger.getLogger(RekeySecretAdminMonitor.class.getName());
  
  }
  