if (modelName != null && ! modelName.equals("null") && ! modelName.startsWith("_BEAN_."))
{
Model model = (Model) req.getService(Model.ROLE, modelName);
ModelRequest mreq = (ModelRequest) req.getService(ModelRequest.ROLE, "default");
mreq.copyFrom(req);
mreq.removeParameter("listSearch");
for (Iterator i = req.getParameters().keySet().iterator(); i.hasNext();)
{
String key = (String) i.next();
if (key.startsWith("_lep"))
{
String keyName = key.substring(4);
if (req.getParameter(keyName) == null)
{
mreq.setParameter(keyName, req.getParameter(key));
}
}
if (key.startsWith("_lp"))
{
String keyName = key.substring(3);
if (req.getParameter(keyName) == null)
{
mreq.setParameter(keyName, req.getParameter(key));
}
}
}
res = model.execute(mreq);