if ( customPortletModes.size() > 0 )
{
Iterator iter = customPortletModes.iterator();
while ( iter.hasNext() )
{
CustomPortletMode customMode = (CustomPortletMode)iter.next();
if ( !list.contains(customMode.getCustomMode()) && JetspeedActions.getExtendedPortletModes().contains(customMode.getMappedMode()) )
{
list.add(customMode.getCustomMode());
supportedCustomModes.put(customMode.getMappedMode(), customMode.getCustomMode());
mappedCustomModes.put(customMode.getCustomMode(), customMode.getMappedMode());
}
}
}
supportedPortletModes = Collections.unmodifiableCollection(list);
}