AndFilter andFilter = (AndFilter) filter;
for (OSGiFilter subFilter : andFilter.getSubFilters()) {
extractFilter(subFilter);
}
} else if (filter instanceof CompareFilter) {
CompareFilter compareFilter = ((CompareFilter) filter);
parseCompareFilter(compareFilter, false);
} else if (filter instanceof NotFilter) {
NotFilter notFilter = ((NotFilter) filter);
if (notFilter.getSubFilter() instanceof CompareFilter) {
CompareFilter compareFilter = ((CompareFilter) notFilter.getSubFilter());
parseCompareFilter(compareFilter, true);
}
} else {
throw new UnsupportedFilterException("Unsupported filter: "
+ filter.getClass().getName());