return filter;
}
// Parse an AND filter.
private static final AndFilter readAndFilter(And filterBean) throws SimpleServerException {
AndFilter filter = ConfigFactory.newAndFilter();
// May embed any number of simple filters, conjunctions and disjunctions.
SimpleFilterType[] simpleFilters = filterBean.getFilterArray();
And[] andBeans = filterBean.getAndArray();
Or[] orBeans = filterBean.getOrArray();
List<FilterType> filterBeans = getFilters(simpleFilters, andBeans, orBeans);
for (int i = 0; i < filterBeans.size(); i++) {
filter.addFilter(readFilter(filterBeans.get(i)));
}
return filter;
}