final ExoContainer topContainer = ExoContainerContext.getTopContainer();
FederatingPortletInvoker federatingPortletInvoker = (FederatingPortletInvoker) topContainer
.getComponentInstanceOfType(FederatingPortletInvoker.class);
if (federatingPortletInvoker != null && federatingPortletInvoker.isResolved(PortletInvoker.LOCAL_PORTLET_INVOKER_ID)) {
// The current instance registered the producerPortletInvoker so we have to unregister it
federatingPortletInvoker.unregisterInvoker(PortletInvoker.LOCAL_PORTLET_INVOKER_ID);
}
}
public PortletApplicationDeployer getPortletApplicationRegistry() {
return portletApplicationRegistry;