// check for violation exceptions
if (!verify.getViolations().isEmpty()) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < 5 && i < verify.getViolations().size(); i++) {
VerificationViolation violation = verify.getViolations().get(i);
if (i != 0)
buf.append("\n");
buf.append(violation.getMessage())
.append(": ");
for (int j = 0; j < violation.getObjects().size(); j++) {
if (j != 0)
buf.append("; ");
buf.append(IamlBreadcrumb.breadcrumb(violation.getObjects().get(j)));
}
}
if (verify.getViolations().size() > 5) {
// there are more