}
private EntityCollectionValidationResult validateImpl(ManagedProject project,
Collection<IntegrationEntity> itemsToValidate) {
EntityCollectionValidationResultBuilder resultBuilder = EntityCollectionValidationResultBuilder.newBuilder();
ValidationContext context = new ProjectValidationContext(project);
for (IntegrationEntity e : itemsToValidate) {
ValidationResult r = e.validate(context);
resultBuilder.add(e, r);
}
return resultBuilder.getResult();