/**
* while more PAs for each portletDef list:entityMan:getPortletEntity(pd)
*/
Iterator pi = pa.getPortlets().iterator();
PortletDefinition pd = null;
JSPortlets portlets = new JSPortlets();
while (pi.hasNext())
{
try
{
pd = (PortletDefinition) pi.next();
JSPortlet p = exportPD(pd, settings, log);
if (p != null)
{
log.debug("--processed PA " + pa.getName() + " with pd=" + pd.getPortletName());
portlets.add(p);
}
else
log.debug("--processed PA " + pa.getName() + " with NULL pd=" + pd.getPortletName());
}
catch (Exception e)
{
throw new SerializerException(SerializerException.CREATE_SERIALIZED_OBJECT_FAILED.create(new String[] { "PortletDefinition", e.getMessage() }),
e);
}
}
if (!portlets.isEmpty())
{
jsApplication = new JSApplication();
log.debug("--exporting PA " + pa.getName());
// jsApplication.setID(pa.getName().toString());
jsApplication.setName(pa.getName());