code: public void addCommand(String action, String cat, String var, String value, String match)
      {
          // for convienence of reference, shorter!
          final String stringCounter = String.format("%06d", this.actionCounter);
  
          if (action != null)
          {
              actions.put("Action-" + stringCounter, action);
          }
  
          if (cat != null)
          {
              actions.put("Cat-" + stringCounter, cat);
          }
  
          if (var != null)
          {
              actions.put("Var-" + stringCounter, var);
          }
  
          if (value != null)
          {
              actions.put("Value-" + stringCounter, value);
          }
  
          if (match != null)
          {
              actions.put("Match-" + stringCounter, match);
          }
  
          this.actionCounter++;
      }
docs: Adds a command to update a config file while sparing you the details of
  the Manager's required syntax. If you want to omit one of the command's
  sections, provide a null value to this method. The command index will be
  incremented even if you supply a null for all parameters, though the map
  will be unaffected.
  
  @param action Action to Take
  (NewCat,RenameCat,DelCat,Update,Delete,Append), see static
  fields
  @param cat Category to operate on
  @param var Variable to work on
  @param value Value to work on
  @param match Extra match required to match line