catch(Exception e)
{
e.printStackTrace();
}
PortletApplicationEntityListImpl applications = new PortletApplicationEntityListImpl(apps);
// This is here to set back-references
for (Iterator iter = applications.iterator(); iter.hasNext();) {
PortletApplicationEntity app = (PortletApplicationEntity) iter.next();
for (Iterator ports = app.getPortletEntityList().iterator(); ports.hasNext();) {
PortletEntityImpl port = (PortletEntityImpl) ports.next();
if (port.getId().toString().indexOf(".") < 0) {