public void validateConstraint(boolean isRequestContext, String constraint, String name, String value, String constraintValue, StringBuilder errors) { ConstraintType constraintType = constraintMap.get(constraint.toLowerCase(Locale.US)); if (constraintType == null) { if (errors.length() > 0) { errors.append("\n"); } errors.append("Unable to locate constraint type ").append(constraint); if (isRequestContext) { errors.append(" for ThreadContext key "); } else { errors.append(" for key "); } errors.append(name); return; } constraintType.validate(isRequestContext, name, value, constraintValue, errors); }