for (DiscoveryConfiguration discoveryConfiguration : discoveryConfigurations)
{
for (int i = 0; i < discoveryConfiguration.getSearchFilters()
.size(); i++)
{
DiscoverySearchFilter discoverySearchFilter = discoveryConfiguration
.getSearchFilters().get(i);
for (int j = 0; j < discoverySearchFilter
.getMetadataFields().size(); j++)
{
String metadataField = discoverySearchFilter
.getMetadataFields().get(j);
List<DiscoverySearchFilter> resultingList;
if (searchFilters.get(metadataField) != null)
{
resultingList = searchFilters.get(metadataField);