if (p != null)
{
Map constraints = getParameters(psmlEntry.getLayout());
int position = getPosition(psmlEntry.getLayout());
PortletControl control = getControl(psmlEntry.getControl(), entry);
set.addPortlet(
initControl(control, p),
controller.getConstraints(constraints),
position);
}
}
else
{
logger.error(
" The portlet "
+ psmlEntry.getParent()
+ " does not exist in the Registry ");
continue;
}
}
catch (JetspeedException e)
{
logger.error("Exception", e);
continue;
}
}
// Decorate with a control if required and return
if (portlets.getControl() != null)
{
PortletControl control = getControl(portlets.getControl());
return initControl(control, set);
}
set.sortPortletSet();
// Or return the set