public void postProcessWebXmlElement(WebApp parentElement, MergeContext context) throws DeploymentException {
}
@Override
public void preProcessWebXmlElement(WebApp webApp, MergeContext context) throws DeploymentException {
WelcomeFileList welcomeFileList = null;
//Spec 14.2 While multiple welcome file lists are found, we need to concatenate the items
for (WelcomeFileList list: webApp.getWelcomeFileList()) {
if (welcomeFileList == null) {
welcomeFileList = list;
} else {
welcomeFileList.getWelcomeFile().addAll(list.getWelcomeFile());
}
}
webApp.getWelcomeFileList();
if (welcomeFileList != null) {
for (String welcomeFile : welcomeFileList.getWelcomeFile()) {
context.setAttribute(createWelcomeFileKey(welcomeFile), Boolean.TRUE);
}
}
}