//filterMappingElement.appendChild(createNestedText(WebXmlTag.FILTER_NAME, filterName));
//filterMappingElement.appendChild(createNestedText(WebXmlTag.URL_PATTERN, urlPattern));
//addElement(WebXmlTag.FILTER_MAPPING, filterMappingElement, getRootElement());
WebXmlTag tag = (WebXmlTag)theWebXml.getDescriptorType().getTagByName("filter-mapping");
FilterMapping filterMapping = new FilterMapping(tag);
filterMapping.setName(this.name);
filterMapping.setUrlPattern(this.mapping);
filterMapping.setFilterName(this.name);