}
//
for (StaxNavigator<Element> customPortletModeNav : nav.fork(Element.custom_portlet_mode))
{
CustomPortletModeMetaData customPortletModeMD = new CustomPortletModeMetaData();
customPortletModeMD.setId(customPortletModeNav .getAttribute("id"));
customPortletModeMD.setDescription(readLocalizedString(customPortletModeNav , Element.description));
customPortletModeMD.setPortletMode(getContent(customPortletModeNav, Element.portlet_mode));
if (customPortletModeNav .next(Element.portal_managed))
{
customPortletModeMD.setPortalManaged(customPortletModeNav .parseContent(ValueType.BOOLEAN));
}
md.addCustomPortletMode(customPortletModeMD);
}
//