List customWindowStates = portletAppDD.getCustomWindowStates();
if ( customWindowStates != null )
{
for ( Iterator i = customWindowStates.iterator(); i.hasNext(); )
{
CustomWindowStateDD customState = (CustomWindowStateDD)i.next();
if ( customState.getWindowState().equals(state))
{
return true;
}
}
}