code: private void validateConstraint(RuleSet ruleSet, Constraint constraint, Severity severity) throws RuleException {
          if (!executedConstraints.contains(constraint)) {
              if (applyRequiredConcepts(ruleSet, constraint)) {
                  ruleVisitor.visitConstraint(constraint, severity);
              } else {
                  ruleVisitor.skipConstraint(constraint, severity);
              }
              executedConstraints.add(constraint);
          }
      }
docs: Validates the given constraint.
  
  @param constraint
  The constraint.
  @throws RuleException
  If the constraint cannot be validated.