.addNamespace("xmlns:web", "http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd") .getOrCreateWelcomeFileList() .welcomeFile("faces/index.xhtml") .up() .getOrCreateContextParam() .paramName("javax.faces.PROJECT_STAGE")
servletConfig.getOrCreateWelcomeFileList().welcomeFile(INDEX_HTML);
for (WelcomeFileListType<WebAppDescriptor> welcomeFileList : servletConfig.getAllWelcomeFileList()) for (String welcomeFile : welcomeFileList.getAllWelcomeFile())