//run through the list of portlets on this page and see if we can find a match
for (String pid : list) {
String pletContext = PortletWindowConfig.parseContextPath(pid);
String pletName = PortletWindowConfig.parsePortletName(pid);
if (portletContext.equals(pletContext) && portletName.equals(pletName)) {
pageConfig.removePortlet(pid);
break;
}
}
}
} else {