private void refreshCustomConfigModePortletInstance()
{
try
{
PortletRegistry registry = (PortletRegistry) Jetspeed.getComponentManager().getComponent("portletRegistry");
PortletFactory portletFactory = (PortletFactory) Jetspeed.getComponentManager().getComponent("portletFactory");
ServletContext portalAppContext = ((ServletConfig) Jetspeed.getComponentManager().getComponent("ServletConfig")).getServletContext();
PortletDefinitionComposite portletDef = (PortletDefinitionComposite) registry.getPortletDefinitionByUniqueName(this.customConfigModePortletUniqueName);
MutablePortletApplication portletApp = (MutablePortletApplication) portletDef.getPortletApplicationDefinition();
WebApplicationDefinition webAppDef = portletApp.getWebApplicationDefinition();
String portletAppName = webAppDef.getContextRoot();
ServletContext portletAppContext = portalAppContext.getContext(portletAppName);
setPortletObjectProxied(true);
this.customConfigModePortletInstance = portletFactory.getPortletInstance(portletAppContext, portletDef);
}
catch (Exception e)
{
}
finally