code: public static void initialize(Retransformer trans) throws Exception {
          transformer = trans;
  
          List<String> scripts = new ArrayList<>();
          List<String> scriptNames = new ArrayList<>();
  
          // Load default and custom rules
          Enumeration<URL> iter = ClassLoader.getSystemResources(ROOT_RULE_FOLDER);
          while (iter.hasMoreElements()) {
              loadRules(iter.nextElement().toURI(), scriptNames, scripts);
          }
  
          try (PrintWriter writer = new PrintWriter(new StringWriter())) {
              try {
                  transformer.installScript(scripts, scriptNames, writer);
              } catch (Exception e) {
                  log.log(Level.SEVERE, "Failed to install scripts", e);
              }
          }
  
          if (log.isLoggable(Level.FINE)) {
              log.fine("Installed rules");
          }
      }
docs: This method initializes the manager.
  
  @param trans The ByteMan retransformer
  @throws Exception