renderConfig.append(NL);
Collection pages = getAvailablePages();
//iterate through pages
for (Iterator iter = pages.iterator(); iter.hasNext();) {
Page page = (Page) iter.next();
PageConfig config = driverConfig.getPageConfig(page.getName());
renderConfig.append(" <page name=\"");
String pageName = config.getName();
renderConfig.append(pageName);
renderConfig.append("\" uri=\"");
String uri = config.getUri();
renderConfig.append(uri);
renderConfig.append("\">");
renderConfig.append(NL);
//iterate through portlets in current page
Collection portletIds = config.getPortletIds();
for (Iterator iterator = portletIds.iterator(); iterator.hasNext();) {
renderConfig.append(" <portlet context=\"");
String pid = (String) iterator.next();
String pletContext = PortletWindowConfig.parseContextPath(pid);
renderConfig.append(pletContext);