code: public static IncludeActionRule newInstance(String id, String transletName, String method, Boolean hidden)
              throws IllegalRuleException {
          if (transletName == null) {
              throw new IllegalRuleException("The 'include' element requires a 'translet' attribute");
          }
  
          MethodType methodType = MethodType.resolve(method);
          if (method != null && methodType == null) {
              throw new IllegalRuleException("No request method type for '" + method + "'");
          }
  
          IncludeActionRule includeActionRule = new IncludeActionRule();
          includeActionRule.setActionId(id);
          includeActionRule.setTransletName(transletName);
          includeActionRule.setMethodType(methodType);
          includeActionRule.setHidden(hidden);
          return includeActionRule;
      }
docs: Returns a new instance of IncludeActionRule.
  
  @param id the action id
  @param transletName the translet name
  @param method the request method type
  @param hidden whether to hide result of the action
  @return the include action rule
  @throws IllegalRuleException if an illegal rule is found