public void onEvent(ManagedObjectRegistryEvent event)
{
if (event instanceof ManagedObjectEvent)
{
ManagedObjectEvent managedObjectEvent = (ManagedObjectEvent)event;
ManagedObject managedObject = managedObjectEvent.getManagedObject();
if (managedObject instanceof ManagedPortletContainer)
{
ManagedPortletContainer portletContainer = (ManagedPortletContainer)managedObject;
String applicationId = portletContainer.getManagedPortletApplication().getId();