WebAppInfoBuilder webAppInfoBuilder = (WebAppInfoBuilder)sharedContext.get(WebModule.WEB_APP_INFO);
if (webAppInfoBuilder != null) {
WebAppInfo webAppInfo = webAppInfoBuilder.getWebAppInfo();
webAppInfo.listeners.addAll(listenerNames);
//install default jsp servlet....
ServletInfo jspServlet = webAppInfoBuilder.copy(defaultJspServletInfo);
List<JspConfig> jspConfigs = webApp.getJspConfig();
List<String> jspMappings = new ArrayList<String>();
for (JspConfig jspConfig : jspConfigs) {
for (JspPropertyGroup propertyGroup : jspConfig.getJspPropertyGroup()) {
WebAppInfoBuilder.normalizeUrlPatterns(propertyGroup.getUrlPattern(), jspMappings);