List initParams = new ArrayList();
ServletContext servletCtx = context.getServletContext();
for (Enumeration e = servletCtx.getInitParameterNames(); e.hasMoreElements(); ) {
String paramName = (String) e.nextElement();
ApplicationParam param = new ApplicationParam();
param.setName(paramName);
param.setValue(servletCtx.getInitParameter(paramName));
// if the parameter is declared in a deployment descriptor
// and it is not declared in a context descriptor with override=false,
// the value comes from the deployment descriptor
param.setFromDeplDescr(context.findParameter(paramName) != null && ! nonOverridableParams.contains(paramName));
initParams.add(param);
}
return initParams;
}