String location = (String)portLocations.get(service.getName());
if (location == null) {
// add new <servlet-mapping/> element
location = "/" + JAXWSUtils.getServiceName(service);
ServletMappingType servletMapping = webApp.addNewServletMapping();
servletMapping.addNewServletName().setStringValue(service.getName());
servletMapping.addNewUrlPattern().setStringValue(location);
} else {
// weird, there was no servlet entry for this class but
// servlet-mapping exists
LOG.warn("Found <servlet-mapping> but corresponding <servlet> was not defined");