}
private void populateList(EntityCollectionValidationResult result) {
DefaultListModel model = new DefaultListModel();
for (IntegrationEntity entity : result.getValidatedEntities()) {
ValidationResult state = result.getValidationResult(entity);
if (state.status() != ValidationStatus.VALID) {
IntegrationEntityListDecorator entityItem = new IntegrationEntityListDecorator(entity);
entityItem.setIndicateValidationStatus(true);
model.addElement(entityItem);
for (ValidationMessage msg : state.allMessages()) {
model.addElement(new ProblemItem(msg));
}
}
}
problemList.setModel(model);