// create page with given portlets
RootFragment root = PageRegistry.getRootFragment();
ArrayList fragments = new ArrayList();
PortletApplicationEntityList entityList = PortletEntityRegistry.getPortletApplicationEntityList();
PortletApplicationDefinitionList definitionList = PortletDefinitionRegistry.getPortletApplicationDefinitionList();
// put all portlets in one column
StringTokenizer tokenizer;
Iterator appIt, portletIt;
for ( int i=0; i < portletNames.length; ++i) {
tokenizer = new StringTokenizer(portletNames[i], "/");
String appName = tokenizer.nextToken();
String portletName = tokenizer.nextToken();
appIt = entityList.iterator();
PortletApplicationEntity appEntity = null;
// search for application
boolean found = false;
while ( appIt.hasNext() && ! found ) {
appEntity = (PortletApplicationEntity) appIt.next();