}
for (DispatcherType dispatcherType : webFilter.dispatcherTypes()) {
filterMapping.addNewDispatcher().setStringValue(dispatcherType.name());
}
for (String urlPattern : urlPatterns) {
filterMapping.addNewUrlPattern().setStringValue(urlPattern);
}
FilterMappingMergeHandler.addFilterMapping(filterMapping, mergeContext);
//Set this tag, so that if any following web-fragment.xml has defined the url-patterns explicitly, it could drop the configurations from annotation
mergeContext.setAttribute(FilterMappingMergeHandler.createFilterMappingSourceKey(filterName), ElementSource.ANNOTATION);
}