// get all catalogs objects used for the "catalog path"
Vector catalogPath = this.getCmsManager().getCatalogs(fromcatalogName, tocatalogName);
// get the catalog selected in the velocity template
Catalog catalog = (Catalog) catalogPath.lastElement();
// Retrieve catalog items
this.getCmsManager().populateCatalog(catalog,true,true,1);
// Store the cataloPath collection and the catalog into the portlet session for performance reason
// (can be used by the customizer without a second retrieve in the cms repository