If a war file is deployed to Tomcat, Jetty, or Undertow, we currently configure and customise the servlet web server factory even though it will never be used. It would be useful to be able to make the configuration and customization conditional on the app not being deployed to an external container.