code: public static DispatchRule newInstance(String name) throws IllegalRuleException {
          if (name == null) {
              throw new IllegalRuleException("name must not be null");
          }
          DispatchRule dr = new DispatchRule();
          dr.setName(name);
          return dr;
      }
docs: Returns a new instance of DispatchRule.
  
  @param name the dispatch name
  @return the dispatch rule
  @throws IllegalRuleException if an illegal rule is found