code: public String exportRules(Engine engine) {
          StringBuilder result = new StringBuilder();
          result.append("[Rules]\n");
          for (RuleBlock ruleBlock : engine.getRuleBlocks()) {
              if (engine.numberOfRuleBlocks() > 1) {
                  result.append(String.format("# RuleBlock %d",
                          1 + engine.getRuleBlocks().indexOf(ruleBlock)));
              }
              for (Rule rule : ruleBlock.getRules()) {
                  if (rule.isLoaded()) {
                      result.append(exportRule(rule, engine)).append("\n");
                  }
              }
          }
          return result.toString();
      }
docs: Returns a string representation of the `[Rules]` configuration
  
  @param engine is the engine
  @return a string representation of the `[Rules]` configuration