code: public static DispatchRule replicate(DispatchRule dispatchRule) {
          DispatchRule dr = new DispatchRule();
          dr.setName(dispatchRule.getName(), dispatchRule.getNameTokens());
          dr.setContentType(dispatchRule.getContentType());
          dr.setEncoding(dispatchRule.getEncoding());
          dr.setDefaultResponse(dispatchRule.getDefaultResponse());
          dr.setActionList(dispatchRule.getActionList());
          return dr;
      }
docs: Returns a new derived instance of DispatchRule.
  
  @param dispatchRule an instance of DispatchRule
  @return the dispatch rule