* Removes the portletList from the PageConfig in Pluto
* @see org.apache.geronimo.pluto.PlutoAccessInterface#removePortlets(java.lang.String, java.util.ArrayList)
*/
private void removePortlets() {
if (pageExists()) {
PageConfig pageConfig = getPageConfigFromPluto();
int portletCount = portletList.size();
Collection<String> list = pageConfig.getPortletIds();
//run through the list of portlets to remove
for (int i = 0; i < portletCount; i++) {
String portletName = portletList.get(i);
//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 {