{
if (!installedInWebXML())
{
// TODO this needs to be fixed in desciptors (allow creation of servlet mapping)
ServletFacet servlet = project.getFacet(ServletFacet.class);
WebAppDescriptorImpl web = (WebAppDescriptorImpl) servlet.getConfig();
Node node = web.getRootNode();
Node servletClass = node.getSingle("servlet-mapping/servlet-name=" + JAXRS_SERVLET);
if (servletClass == null)
{
Node mapping = node.createChild("servlet-mapping");
mapping.createChild("servlet-name").text(JAXRS_SERVLET);