portletApplicationContext.managedPortletApplication = portletApplicationLifeCycle;
//
for (ContainerFilterInfo filterInfo : builder.getApplication().getFilters().values())
{
PortletFilterObject portletFilterObject = new PortletFilterImpl(filterInfo);
PortletFilterContextImpl portletFilterContext = new PortletFilterContextImpl();
// Needed for the managed callbacks
portletFilterContext.managedPortletFilter = portletApplicationLifeCycle.addPortletFilter(portletFilterContext, portletFilterObject);
}