if (mDefaultViewIdMap == null)
{
mDefaultViewIdMap = new HashMap<String, String>();
// loop through all portlet initialization parameters looking for those in the
// correct form
PortletConfig config = getPortletConfig();
Enumeration<String> e = config.getInitParameterNames();
int len = DEFAULT_VIEWID.length();
while (e.hasMoreElements())
{
String s = e.nextElement();
if (s.startsWith(DEFAULT_VIEWID) && s.length() > DEFAULT_VIEWID.length())
{
String viewId = config.getInitParameter(s);
// Don't add if there isn't a view
if (viewId == null || viewId.length() == 0) continue;
// extract the mode