else if (modeRequire.getFilter() == null)
iter.remove();
else {
try {
Filter filter = new Filter(modeRequire.getFilter());
if (!filter.match(modeCapability))
iter.remove();
} catch (IllegalArgumentException e) {
synchronized (this) {
if (reporter != null)
reporter.error("Error parsing mode filter requirement on resource %s: %s", resource.getUrl(), modeRequire.getFilter());