// If the supplied window state isn't a JSR 168 window state,
// we look to see if it is a custom window state.
String appId = PortletWindowConfig.parseContextPath(portletId);
PortletAppDD portletAppDD = null;
if (portletRegistry == null)
{
portletRegistry = getPortletRegistryService();
if ( portletRegistry == null )
{
return false;
}
}
try
{
portletAppDD = portletRegistry.getPortletApplicationDescriptor(appId);
}
catch ( PortletContainerException e )
{
StringBuffer errMsg = new StringBuffer( "Cannot determine supported window " +
"states for portletId [" + portletId + "] and window state [" + state + "]. " );
String msg = errMsg.append( "Unable to access the Portlet Registry Service." ).toString();
LOG.error( msg, e );
}
List customWindowStates = portletAppDD.getCustomWindowStates();
if ( customWindowStates != null )
{
for ( Iterator i = customWindowStates.iterator(); i.hasNext(); )
{
CustomWindowStateDD customState = (CustomWindowStateDD)i.next();