if (servletClass != null)
{
servletClass.getParent().getOrCreate("url-pattern").text(path);
}
servlet.saveConfig(web);
}
/**
* Important: Use this method always to obtain the configuration. Do not invoke this inside a constructor since the
* returned {@link Configuration} instance would not be the project scoped one.