+ applicationClassName, e);
}
}
if (application != null) {
final Context applicationContext = application.getContext();
// Copy all the servlet parameters into the context
String initParam;
// Copy all the Servlet component initialization parameters
final javax.servlet.ServletConfig servletConfig = getServletConfig();
for (final Enumeration<String> enum1 = servletConfig
.getInitParameterNames(); enum1.hasMoreElements();) {
initParam = enum1.nextElement();
applicationContext.getParameters().add(initParam,
servletConfig.getInitParameter(initParam));
}
// Copy all the Servlet application initialization parameters
for (final Enumeration<String> enum1 = getServletContext()
.getInitParameterNames(); enum1.hasMoreElements();) {
initParam = enum1.nextElement();
applicationContext.getParameters().add(initParam,
getServletContext().getInitParameter(initParam));
}
}
return application;