for (String propertyId : cto.getCriteriaMap().keySet()) {
if (mergedProperties.containsKey(propertyId)) {
boolean handled = false;
for (FieldPersistenceProvider fieldPersistenceProvider : fieldPersistenceProviders) {
FieldProviderResponse response = fieldPersistenceProvider.addSearchMapping(
new AddSearchMappingRequest(persistencePerspective, cto,
ceilingEntityFullyQualifiedClassname, mergedProperties,
propertyId, getFieldManager(), this, this, customRestrictionFactory==null?restrictionFactory
:customRestrictionFactory), filterMappings);
if (FieldProviderResponse.NOT_HANDLED != response) {
handled = true;
}
if (FieldProviderResponse.HANDLED_BREAK == response) {
break;
}
}
if (!handled) {
defaultFieldPersistenceProvider.addSearchMapping(
new AddSearchMappingRequest(persistencePerspective, cto,
ceilingEntityFullyQualifiedClassname, mergedProperties, propertyId,
getFieldManager(), this, this, customRestrictionFactory==null?restrictionFactory
:customRestrictionFactory), filterMappings);
}
}