{
// Use an alias
PortletApplicationRegistry registry = (PortletApplicationRegistry)getPortletContext().getAttribute(WebBootstrap.BEAN_PREFIX + "PortletApplicationDeployer");
//
ManagedPortletApplication application = registry.getManagedPortletApplication(applicationId);
ManagedObject managedObject = application;
//
String containerId = req.getParameter("container");
if (containerId != null)
{
managedObject = application.getManagedPortletContainer(containerId);
}
else
{
String filterId = req.getParameter("filter");
if (filterId != null)
{
managedObject = application.getManagedPortletFilter(filterId);
}
}
//
final ManagedObject tmp = managedObject;