public synchronized PortletApplicationDefinition getPortletAppDD ( ServletContext servletContext , String name , String contextPath ) throws PortletContainerException { PortletApplicationDefinition portletApp = this . portletAppDefinitionCache . get ( servletContext ) ; if ( portletApp == null ) { portletApp = createDefinition ( servletContext , name , contextPath ) ; this . portletAppDefinitionCache . put ( servletContext , portletApp ) ; } return portletApp ; }
Retrieve the Portlet Application Deployment Descriptor for the given servlet context . Create it if it does not allready exist .