if (entityAccess == null)
throw new SerializerException(
SerializerException.COMPONENTMANAGER_DOES_NOT_EXIST
.create("org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"));
JSApplications applications = new JSApplications();
Collection col = registry.getPortletApplications();
if ((col == null) || (col.size() == 0))
return applications;
Iterator list = null;
try
{
list = col.iterator();
} catch (Exception e)
{
throw new SerializerException(
SerializerException.GET_EXISTING_OBJECTS
.create(new String[]
{"registry", e.getMessage()}));
}
while (list.hasNext())
{
try
{
MutablePortletApplication pa = (MutablePortletApplication) list
.next();
// PortletApplicationDefinition pa =
// (PortletApplicationDefinition)list.next();
applications.add(exportPA(pa));
} catch (Exception e)
{
throw new SerializerException(
SerializerException.CREATE_SERIALIZED_OBJECT_FAILED
.create(new String[]