Currently, the mapping of a servlet is configured under the ServletWrappingFilter's mappings node. This works nicely when integrating third-party filter, and is a good reflection of how one typically maps servlet in web.xml.
However, with Magnolia's IoC and configuration mechanisms, one would tend to think that this mapping shouldn't be hardcoded anywhere. It currently has to - say, if some other components needs to generate links to a servlet, it needs to know where/how the servlet is mapped, and that generally ends up with either a hardcoded path, or a duplicate configuration.
Here's a mechanism that will let Servlet declare their own mapping (i.e. if they implement SelfMappingServlet), so that the mapping can be configured centrally (i.e in MyModule, i.e /modules/mymod/configuration) and used in multiple places.