api/src/main/java/org/ocpsoft/rewrite/config/ConfigurationBuilder.java
@Override
   public ConfigurationRuleBuilder addRule(Rule rule)
   {
      RuleBuilder wrapped = null;
      if (rule instanceof RuleBuilder)
         wrapped = (RuleBuilder) rule;
      else
         wrapped = RuleBuilder.wrap(rule);

      rules.add(wrapped);
      setDefaultLocation(wrapped);
      return new ConfigurationRuleBuilder(this, wrapped);
   }
@Override
   public ConfigurationRuleBuilder addRule(Rule rule)
   {
      RuleBuilder wrapped = null;
      if (rule instanceof RuleBuilder)
         wrapped = (RuleBuilder) rule;
      else
         wrapped = RuleBuilder.wrap(rule);

      rules.add(wrapped);
      setDefaultLocation(wrapped);
      return new ConfigurationRuleBuilder(this, wrapped);
   }
Add a {@link Rule}.