code: public static BeanMethodActionRule newInstance(String id, String beanId, String methodName, Boolean hidden)
              throws IllegalRuleException {
          if (methodName == null) {
              throw new IllegalRuleException("The 'action' element requires an 'method' attribute");
          }
  
          BeanMethodActionRule beanMethodActionRule = new BeanMethodActionRule();
          beanMethodActionRule.setActionId(id);
          beanMethodActionRule.setBeanId(beanId);
          beanMethodActionRule.setMethodName(methodName);
          beanMethodActionRule.setHidden(hidden);
          return beanMethodActionRule;
      }
docs: Returns a new instance of BeanActionRule.
  
  @param id the action id
  @param beanId the bean id
  @param methodName the method name
  @param hidden true if hiding the result of the action; false otherwise
  @return the bean method action rule
  @throws IllegalRuleException if an illegal rule is found