/**
   * Adds additional custom validation rules not available in the global validation-rules javascript
   * file.
   *
   * @param rules
   * @return
   */
  public ValidationEngineOptions addValidationRules(ValidationRule<?>... rules) {

    if (Utils.isEmpty(rules)) return this;

    if (this.validationRules == null) this.validationRules = new ArrayList<ValidationRule<?>>();

    this.validationRules.addAll(Arrays.asList(rules));
    return this;
  }
 public boolean hasValidationRules() {
   return Utils.isNotEmpty(this.validationRules);
 }