* @param id the PSML entry's portlet id
* @return an instanciated portlet corresponding to this entry
*/
public Portlet getPortlet( Entry entry ) throws PortletException
{
PortletEntry regEntry = (PortletEntry)Registry.getEntry(Registry.PORTLET,
entry.getParent() );
if (regEntry == null)
{
throw new PortletException("PortletFactory: unknown portlet entry in Registry: "+entry.getParent());
}
if (PortletEntry.TYPE_ABSTRACT.equals(regEntry.getType()))
{
throw new PortletException("PortletFactory: can't instanciate abstract registry entry: "+regEntry.getName());
}
PortletConfig pc = getPortletConfig(regEntry, entry.getId());
// Set portlet config with values from PSML Entry