if (!found) {
for (Iterator iter = definitionList.iterator(); !found && iter.hasNext();) {
PortletApplicationDefinition portletApp = (PortletApplicationDefinition)iter.next();
if (portletApp.getId().toString().equals(appName)) {
//PortletApplicationEntityListCtrl appEntityListCtrl = (PortletApplicationEntityListCtrl)ControllerObjectAccess.get(entityList);
PortletApplicationEntityListCtrl appEntityListCtrl = (PortletApplicationEntityListCtrl)entityList;
appEntity = appEntityListCtrl.add(portletApp.getId().toString());
log("added Portlet Application " + appName + " to PortletEntityRegistry");
found = true;
}
}
}