int count = 0;
for (PropertyAccessor entityPropertyAccessor : entityPropertyAccessorMap.values()) {
Object entity = extractEntity(entityPropertyAccessor, solution);
if (entity != null) {
EntityDescriptor entityDescriptor = findEntityDescriptorOrFail(entity.getClass());
count += entityDescriptor.countUninitializedVariables(entity);
}
}
for (PropertyAccessor entityCollectionPropertyAccessor : entityCollectionPropertyAccessorMap.values()) {
Collection<?> entityCollection = extractEntityCollection(
entityCollectionPropertyAccessor, solution);