{
if ("2.3".equals(webApp.getVersion())) //$NON-NLS-1$
{
for (Iterator it = webApp.getContexts().iterator(); it.hasNext();)
{
ContextParam cp = (ContextParam) it.next();
if (cp != null &&
cp.getParamName() != null &&
cp.getParamName().trim().equals(paramName)) {
return cp.getParamValue();
}
}
}
else if ("2.4".equals(webApp.getVersion())) //$NON-NLS-1$
{
for (Iterator it = webApp.getContextParams().iterator(); it.hasNext();)
{
ParamValue cp = (ParamValue) it.next();
if (cp != null &&
cp.getName() != null &&
cp.getName().trim().equals(paramName)) {
return cp.getValue();
}
}
}
return null;
}