if (!ServletMappingMergeHandler.isServletMappingConfigured(servletName, mergeContext)) {
//merge url-patterns, spec 8.1.n.vi. url-patterns, when specified in a descriptor for a given servlet name overrides the url patterns specified via the annotation.
//FIXME To my understanding of the spec, once there are url-patterns configured in the descriptors, those configurations from the annotations are ignored
ServletMappingType newServletMapping = webApp.addNewServletMapping();
//create servlet-mapping element
newServletMapping.addNewServletName().setStringValue(servletName);
for (String urlPattern : urlPatterns) {
newServletMapping.addNewUrlPattern().setStringValue(urlPattern);
}
ServletMappingMergeHandler.addServletMapping(newServletMapping, 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