code: public synchronized ValidationRuleStore addRule(ValidationRule rule) {
          rule.setOrderIdx(this.rules.size());
          this.rules.add(rule);
          this.checkHashMap.put(rule.getRuleName(), rule.getValidationCheck());
          return this;
      }
docs: Add rule validation rule store.
  
  @param rule the rule
  @return the validation rule store