code: public static DispatchRule newInstance(String name, String dispatcherName, String contentType,
                                             String encoding, Boolean defaultResponse) {
          DispatchRule dr = new DispatchRule();
          dr.setName(name);
          dr.setDispatcherName(dispatcherName);
          dr.setContentType(contentType);
          dr.setEncoding(encoding);
          dr.setDefaultResponse(defaultResponse);
          return dr;
      }
docs: Returns a new instance of DispatchRule.
  
  @param name the dispatch name
  @param dispatcherName the id or class name of the view dispatcher bean
  @param contentType the content type
  @param encoding the character encoding
  @param defaultResponse whether it is the default response
  @return an instance of DispatchRule